Only create/rewrite file if logging is turned on

This commit is contained in:
Brendon J. Brewer 2020-02-05 07:49:26 +13:00
parent 9791bb800e
commit b53c5ba2d8

View file

@ -27,8 +27,10 @@ TRENDING_LOG = True
# Stubs
def install(connection):
check_trending_values(connection)
f = open("trending_ar.log", "w")
f.close()
if TRENDING_LOG:
f = open("trending_ar.log", "w")
f.close()
CREATE_TREND_TABLE = ""