Skip to content

Commit

Permalink
Update crawler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
riverallzero authored Oct 22, 2023
1 parent 55b09fc commit 6a0077b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

receiver_email = '[email protected]'

file_path = 'last_no.txt'
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
file_path = os.path.join(BASE_DIR, 'last_no.txt')

if os.path.exists(file_path):
with open(file_path, 'r') as file:
last_no = int(file.read())
Expand Down

0 comments on commit 6a0077b

Please sign in to comment.