Skip to content

Commit

Permalink
Create version file when generate
Browse files Browse the repository at this point in the history
  • Loading branch information
Potat0000 committed Oct 10, 2024
1 parent 7e6c68d commit 1b2a4f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ def IP(ip):
except FileExistsError:
pass

version = int(datetime.now().timestamp())
with open('metadata/version', 'w') as f:
print(version, file=f)

roa = {
'metadata': {
'counts': 0,
'generated': int(datetime.now().timestamp()),
'generated': version,
'valid': 0,
},
'roas': [],
Expand Down

0 comments on commit 1b2a4f8

Please sign in to comment.