fix: [paste submit] update broken endpoint + get item date

pull/350/head
Terrtia 2019-04-26 10:04:07 +02:00
parent 3207949c5f
commit 3e6fbc8f79
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
2 changed files with 5 additions and 1 deletions

View File

@ -96,6 +96,10 @@ def remove_submit_uuid(uuid):
r_serv_db.srem('submitted:uuid', uuid) r_serv_db.srem('submitted:uuid', uuid)
print('{} all file submitted'.format(uuid)) print('{} all file submitted'.format(uuid))
def get_item_date(item_filename):
l_directory = item_filename.split('/')
return '{}{}{}'.format(l_directory[-4], l_directory[-3], l_directory[-2])
def add_item_tag(tag, item_path): def add_item_tag(tag, item_path):
item_date = int(get_item_date(item_path)) item_date = int(get_item_date(item_path))

View File

@ -188,7 +188,7 @@
<span class="label-icon">ERROR </span> <span class="label-icon">ERROR </span>
<i class="fa fa-times"></i> <i class="fa fa-times"></i>
</button> </button>
<a class="btn btn-tags pull-left hidden" href="{{ url_for('Tags.get_tagged_paste') }}?ltags=infoleak:submission=&quot;manual&quot;" target="_blank" id="submit_result"> <a class="btn btn-tags pull-left hidden" href="{{ url_for('Tags.Tags_page') }}?ltags=infoleak:submission=&quot;manual&quot;" target="_blank" id="submit_result">
<span class="label-icon">Submitted Pastes </span> <span class="label-icon">Submitted Pastes </span>
<i class="fa fa-paper-plane fa-2x"></i> <i class="fa fa-paper-plane fa-2x"></i>
</a> </a>