add last_topic_id.txt
This commit is contained in:
parent
e27a515899
commit
2f8a266612
2 changed files with 3 additions and 2 deletions
1
last_topic_id.txt
Normal file
1
last_topic_id.txt
Normal file
|
@ -0,0 +1 @@
|
|||
1639
|
4
main.py
4
main.py
|
@ -313,9 +313,9 @@ else:
|
|||
print('An unexpected error occurred:', e)
|
||||
|
||||
# write new last_topic_id to file
|
||||
with open("id", "w") as f:
|
||||
with open("last_topic_id.txt", "w") as f:
|
||||
f.write(str(last_topic_id))
|
||||
f.close()
|
||||
|
||||
else:
|
||||
print("Disallowed to post")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue