Skip to content

Commit

Permalink
Fix save error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vollmer committed Jun 9, 2020
1 parent 52bf16a commit c152c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SetupVariableTracker/SetupVariableTracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def get_table(self, locals_c, sort: bool = False):

def save(self, locals_c, filename=None, sort: bool = False):
if not filename:
import datetime
filename = datetime.datetime().strftime("YYYY-MM-DD_HH-MM-SS") + "_SetupVariables.log"
from datetime import datetime
filename = datetime.now().strftime("YYYY-MM-DD_HH-MM-SS") + "_SetupVariables.log"

import codecs
cont = self.get_table(locals_c=locals_c, sort=sort)
Expand Down

0 comments on commit c152c98

Please sign in to comment.