Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/conversation loggin fix #108

Merged
merged 8 commits into from
Oct 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
adding timestamp
julius-heitkoetter committed Oct 18, 2023
commit 9acbf7a34d12ff2e938bd41ab793cae5c0eb0047
3 changes: 3 additions & 0 deletions A2rchi/interfaces/chat_app/app.py
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
import json
import os
import yaml
import time

# DEFINITIONS
QUERY_LIMIT = 1000 # max number of queries
@@ -72,6 +73,8 @@ def update_or_add_discussion(data_path, json_file, discussion_id, discussion_con
# update or add discussion
discussion_dict = data.get(str(discussion_id), {})

discussion_dict["meta"] = {"time_last_used", time.time()}

if discussion_contents is not None:
print(" INFO - found contents.")
discussion_dict["contents"] = discussion_contents