Skip to content
Snippets Groups Projects

added InstitutionsURLs page and required backend routes and models

1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
167 202 db.session.commit()
168 203
169 204
205 def transfer_institutions_urls(nren_dict):
206 rows = query_institutions_urls()
207 for row in rows:
208 answer_id, nren_name, year, actual_answer = row
209 if nren_name not in nren_dict:
210 logger.info(f'{nren_name} unknown. Skipping.')
211 continue
212
213 urls = extract_urls(text=actual_answer)
  • We discussed the extract_urls function is a bit iffy because its based on a regex. If we want to use that function, we should at least log all the cases were it gives a different result than the entered text. So I propose you also do a regular json parse (add the [] if they're missing on old data so that you always have an array), and log all the cases where that gives a different result. Then it's easy to evaluate what the extract_urls function has done.

  • I added a logging logic to compare the results and it showed that it works fine. thanks for your suggestion

  • Please register or sign in to reply
  • added 1 commit

    • cf6a7a50 - added InstitutionsURLs page and required backend routes and models

    Compare with previous version

  • added 1 commit

    • b2757bca - added InstitutionsURLs page and required backend routes and models

    Compare with previous version

  • mentioned in commit 7c67a1c7

  • Please register or sign in to reply
    Loading