mirror of
https://github.com/d0zingcat/bluesky-crossposter.git
synced 2026-06-02 07:26:45 +00:00
@@ -373,6 +373,8 @@ def jsonRead():
|
||||
|
||||
# Function for checking if a line is already in the database-file
|
||||
def isInDB(line):
|
||||
if not os.path.exists(databasePath):
|
||||
return False
|
||||
with open(databasePath, 'r') as file:
|
||||
content = file.read()
|
||||
if line in content:
|
||||
|
||||
Reference in New Issue
Block a user