Foppe Hemminga 6 년 전
부모
커밋
ac5b270ebe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      data.py

+ 1 - 1
data.py

@@ -40,7 +40,7 @@ cursor.execute(query)
 res = cursor.fetchone()
 timestamp_latest = res.timestamp
 
-with open('timestamp.txt', 'w+') as f:
+with open('timestamp.txt', 'r+') as f:
     timestamp_stored = f.read()
     print(timestamp_stored)
     if timestamp_latest != timestamp_stored: