2 syntax errors

Python requires True and False to be as capitalised.  
rogue space on line 153 throws an indentation error.
pull/326/head
target-drone 2017-03-14 07:26:45 +03:00 zatwierdzone przez GitHub
rodzic dbba2c94ea
commit dc71d1b509
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -32,7 +32,7 @@ import json
import os
import datetime
while true:
while True:
## Read the configuration file.
with open(os.path.dirname(os.path.realpath(__file__)) + '/config.json') as config_file:
@ -150,7 +150,7 @@ while true:
#SQLite
if config["database"]["type"] == "sqlite":
params = (purge_date,)
cursor.execute("DELETE FROM adsb_positions WHERE time < ?", params)
cursor.execute("DELETE FROM adsb_positions WHERE time < ?", params)
## Close the database connection.