mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 06:07:21 +02:00
fix expiration date, add delete button
This commit is contained in:
1 parent
a2a0ebf2c7
commit
ce13716912
1 file changed
+1
-1
@@ -443,7 +443,7 @@ class Anonymous_Github:
|
||||
with open(config_path, 'r') as f:
|
||||
repository_configuration = json.load(f, object_hook=json_util.object_hook)
|
||||
if 'expiration_date' in repository_configuration:
|
||||
if repository_configuration['expiration_date'] > datetime.now(repository_configuration['expiration_date'].tzinfo):
|
||||
if repository_configuration['expiration_date'] <= datetime.now(repository_configuration['expiration_date'].tzinfo):
|
||||
if repository_configuration['expiration'] == 'redirect':
|
||||
return redirect(repository_configuration['repository'])
|
||||
elif repository_configuration['expiration'] == 'remove':
|
||||
|
||||
Reference in new issue
Block a user