Commit b299ef27 authored by Hans-Peter Deifel's avatar Hans-Peter Deifel

Set internal_net_only in mailhandler and upload

Otherwise it will be written to the mod-db without this field.

references #101
parent f6e296a6
......@@ -63,6 +63,7 @@ def save_for_mod(message, meta, pdf):
meta['mailtext'] = extract_text(message)
meta['timestamp'] = datetime.date.today()
meta['tags'] = set()
meta['internal_net_only'] = False
if 'Resent-From' in message.keys():
meta['from'] = message['Resent-From']
else:
......
......@@ -135,6 +135,7 @@ def empty_metadata():
metadata['trimmed'] = False
metadata['timestamp'] = datetime.date.today()
metadata['tags'] = set()
metadata['internal_net_only'] = False
metadata['semester'] = (14, u'SS')
metadata['name'] = "Parse Error. Bitte manuell eingeben"
metadata['title'] = ""
......
......@@ -195,6 +195,7 @@ def insert_uploaded_file(filestorage, trim):
meta['mail_subject'] = "Uploaded File"
meta['timestamp'] = datetime.date.today()
meta['tags'] = set()
meta['internal_net_only'] = False
canonicalize_title(meta)
get_univis_metadata(meta)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment