Skip to content

Commit

Permalink
Fixed how we 'touch()' the dbFile in an update
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Nov 22, 2014
1 parent bd67902 commit cad7c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/update_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def importDataFromFile(cmdenv, tdb, path, stationID, dbFilename):
with tdb.pricesPath.open("w") as pricesFile:
prices.dumpPrices(dbFilename, prices.Element.full, file=pricesFile, debug=cmdenv.debug)

# Update the DB file so we don't regenerate it.
pathlib.Path(dbFilename).touch()
# Update the DB file so we don't regenerate it.
os.utime(dbFilename)


def editUpdate(tdb, cmdenv, stationID):
Expand Down

0 comments on commit cad7c85

Please sign in to comment.