add ability to store an email for a user for recommendations

This commit is contained in:
Andrej Karpathy
2021-11-27 11:04:36 -08:00
parent 970a9e24cf
commit 49995465df
4 changed files with 49 additions and 2 deletions
+5
View File
@@ -124,6 +124,11 @@ def get_last_active_db(flag='r', autocommit=True):
ladb = SqliteDict(DICT_DB_FILE, tablename='last_active', flag=flag, autocommit=autocommit)
return ladb
def get_email_db(flag='r', autocommit=True):
assert flag in ['r', 'c']
edb = SqliteDict(DICT_DB_FILE, tablename='email', flag=flag, autocommit=autocommit)
return edb
# -----------------------------------------------------------------------------
"""
our "feature store" is currently just a pickle file, may want to consider hdf5 in the future