add Public list, peers can add items to that list

This commit is contained in:
j 2019-01-17 23:49:23 +05:30
commit f05a212a82
8 changed files with 55 additions and 13 deletions

View file

@ -43,6 +43,7 @@ class Tasks(Thread):
from user.models import (
export_list, update_user_peering,
add_local_info, remove_local_info,
upload
)
shutdown = False
while not shutdown:
@ -81,6 +82,8 @@ class Tasks(Thread):
item.scan.import_folder()
elif action == 'syncmetadata':
sync_metadata(data)
elif action == 'upload':
upload(data)
else:
trigger_event('error', {'error': 'unknown action'})
if DEUBG_TASKS: