diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-09-16 17:51:03 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-09-16 17:51:03 +0100 |
commit | 92fb54556ad0409a519c308e7e34b63e11621903 (patch) | |
tree | 4aec0272914cdb4c9215a961a65e4483c7b18fb4 /app/tasks/importtasks.py | |
parent | e81eb9c8d58c193f3480bdab68fa73556c8e83f3 (diff) | |
download | cheatdb-92fb54556ad0409a519c308e7e34b63e11621903.tar.xz |
Implement package states for easier reviews
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r-- | app/tasks/importtasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index b0542ee..d1cd87d 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -321,7 +321,7 @@ def makeVCSRelease(self, id, branch): @celery.task() def importRepoScreenshot(id): package = Package.query.get(id) - if package is None or package.soft_deleted: + if package is None or package.state == PackageState.DELETED: raise Exception("Unexpected none package") # Get URL Maker |