Skip to content

Commit

Permalink
more bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlyskepticalpotat committed Jun 19, 2020
1 parent f2f961f commit 2ba13d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ submission-downloader downloads your submissions in bulk from [DMOJ](https://dmo
## Getting Started

### Installing
This program can be installed in two different ways. You can clone the repository and run the code yourself with Python 3 or download prebuilt binaries that will run without Python from our releases page:
This program can be installed in two different ways. You can clone the repository and run the code yourself with Python 3 (recommended) or download prebuilt binaries that will run without Python (convenient) from our releases page:

1. Install the prerequisites with ```$ pip3 install -r requirements.txt```. Next, download [submission-downloader.py](submission-downloader.py). Run the program with ```python3 submission-downloader.py```.

Expand Down
12 changes: 7 additions & 5 deletions submission-downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ def get_submission_sources(self, submissions): # downloads submissions, filters
if self.overwrite == True:
try:
shutil.rmtree("downloaded-submissions")
os.mkdir("downloaded-submissions")
finally:
os.chdir("downloaded-submissions")
except:
pass
os.mkdir("downloaded-submissions")
os.chdir("downloaded-submissions")
else:
try:
os.mkdir("downloaded-submissions")
finally:
os.chdir("downloaded-submissions")
except:
pass
os.chdir("downloaded-submissions")
if self.aconly == True:
submissions = [thing for thing in submissions if thing[4] == "AC" or thing[4] == "_AC"]
else:
Expand Down

0 comments on commit 2ba13d7

Please sign in to comment.