-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add library to check file types - Update docker and readme - Update requirements - Add field for incomplete uploads in case someone uploads a map, but never fills out metadata. These maps should be deleted if the user never finalizes the upload. - Make a response for errors - Fix the `is_text` check to account for `InMemoryUploads` being deleted when they are closed, meaning we couldn't use `with open(temp_file, "tr")` to check for text anymore. - Make `ByteSized`. Might move into its own repo at some point. - Fix binary fixture not reading as binary
- Loading branch information
1 parent
49c355b
commit e63d235
Showing
17 changed files
with
341 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 4.2.5 on 2024-04-13 19:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("kirovy", "0003_map_categories"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="cncmap", | ||
name="incomplete_upload", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="If true, then the map file has been uploaded, but the map info has not been set yet.", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
-r requirements.txt | ||
pytest==7.* | ||
pytest==8.* | ||
pytest-mock==3.* | ||
black==22.* | ||
pre-commit==2.* | ||
pytest-django==4.5.2 | ||
deptree==0.0.10 | ||
black==24.* | ||
pre-commit==3.* | ||
pytest-django==4.* | ||
markdown>=3.4.4, <=4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
django>=4.2.*, <=4.3 # 4.2 is the Long-Term Service version. | ||
django>=4.2.11, <=4.3 # 4.2 is the Long-Term Service version until 2026. | ||
psycopg2==2.* | ||
requests>=2.31.*, <3.0 | ||
djangorestframework>=3.14.*, <4.0 | ||
pyjwt[crypto]>=2.8.0 | ||
pillow==10.* | ||
python-lzo==1.15 | ||
ujson==5.* | ||
python-magic>=0.4.27 |
Oops, something went wrong.