Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @staticmethod
- def insert(key, data, d1=None, d2=None):
- datenow = str(date.today())
- with Vedis(db_file) as db:
- d = json.dumps({datenow: {data: {'e1': d1, 'e2':
- d2}}})
- db[user] = d
- @staticmethod
- def get_hour(key):
- with Vedis(db_file) as db:
- return db[user]
Add Comment
Please, Sign In to add comment