Skip to content

Commit

Permalink
Display source file name in Import Related Projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-ide committed May 28, 2024
1 parent ce6093b commit 14ab2f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion webapp/home/templates/import_related_projects_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<form method="POST" action="" class="form" role="form">
{{ form.csrf_token }}
<table>
{{ macros.import_selection(form, target_filename, "related projects") }}
{{ macros.import_selection(form, source_filename, "related projects") }}
{{ macros.import_buttons(form) }}
{{ macros.hidden_buttons() }}
</table>
Expand Down
9 changes: 5 additions & 4 deletions webapp/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,11 @@ def clear_metapype_store(response):
if not Config.MEM_CLEAR_METAPYPE_STORE_AFTER_EACH_REQUEST:
return response
if url_of_interest():
if Config.MEM_LOG_METAPYPE_STORE_ACTIONS:
store_len = len(Node.store)
log_info(f'*** clear_metapype_store ***: store_len={store_len} {request.url}')
Node.store.clear()
store_len = len(Node.store)
if store_len > 0:
if Config.MEM_LOG_METAPYPE_STORE_ACTIONS:
log_info(f'*** clear_metapype_store ***: store_len={store_len} {request.url}')
Node.store.clear()
return response


Expand Down

0 comments on commit 14ab2f9

Please sign in to comment.