Skip to content

Commit

Permalink
write recommendation df to logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmin17 committed Nov 29, 2023
1 parent 4f2e630 commit ad85a24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def main():
if args.load:
delete_future_recommendations() #this is to renew the recommendation score!
df = put_recommends(save_dir)
# save df to log file
with open('logfile.log', 'w') as f:
f.write(df.to_string())

if __name__ == '__main__':
main()

0 comments on commit ad85a24

Please sign in to comment.