Only create/rewrite file if logging is turned on
This commit is contained in:
parent
9791bb800e
commit
b53c5ba2d8
1 changed files with 4 additions and 2 deletions
|
@ -27,8 +27,10 @@ TRENDING_LOG = True
|
||||||
# Stubs
|
# Stubs
|
||||||
def install(connection):
|
def install(connection):
|
||||||
check_trending_values(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 = ""
|
CREATE_TREND_TABLE = ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue