Skip to content

Commit

Permalink
fix: finish storage err
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Nov 29, 2023
1 parent af5c44d commit eddcd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/pray.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def update_storage(storage_id, content) -> StorageDTO:

def finish_storage(storage_id):
storage = Storage.query.filter_by(id=storage_id, user_id=g.user_id).filter(Storage.deleted_at == None).first()
if storage.deadline > datetime.datetime.now():
if storage.deadline < datetime.datetime.now():
raise StorageFail('already finished')
if not storage:
raise StorageFail('storage not found')
Expand Down

0 comments on commit eddcd94

Please sign in to comment.