Commit graph

129 commits

Author SHA1 Message Date
Edward Betts fd281532e6 Add type hints and docstrings 2023-10-25 07:54:05 +01:00
Edward Betts 63d0d198eb Don't try and set locale, it isn't working 2023-10-23 13:03:38 +01:00
Edward Betts be6e1a86d7 Format code with black 2023-10-23 13:02:28 +01:00
Edward Betts df0138df4a item.count can be None 2020-11-01 15:29:03 +00:00
Edward Betts 60bb9febd9 Include QID and title in error mails
Closes: #31
2020-06-30 20:05:12 +01:00
Edward Betts ee61843183 Catch JSON error and retry 2020-06-30 16:26:01 +01:00
Edward Betts 8c715fe148 Handle malformed browse parameters
Examples:

* https://art.wikidata.link/browse?P1433%27[0]=Q28861951
* https://art.wikidata.link/browse?P1433=Q28861951%27[0]
2020-06-30 14:17:54 +01:00
Edward Betts 98d84054d6 Handle 'unknown value' in depicts statement
Closes: #30
2020-06-30 13:21:32 +01:00
Edward Betts fdd8b23118 Follow redirects for artwork 2020-06-30 11:17:21 +01:00
Edward Betts 9299909e2f Better image filename handling 2020-06-30 09:00:58 +01:00
Edward Betts 97e4501427 Proper display of save errors. 2020-04-22 17:13:03 +01:00
Edward Betts fce288dcee Catch save errors and report to admin. 2020-04-22 16:45:59 +01:00
Edward Betts 3d113a593c Add SHOW_BLOCK_ALERT config option. 2020-04-22 16:30:44 +01:00
Edward Betts 95d69ef302 Add block list report to show active blocks 2020-04-22 15:03:22 +01:00
Edward Betts 3bbb25226b The image associated with an item can change. 2020-03-04 09:07:11 +00:00
Edward Betts 5868810ddc Refactor. 2020-03-04 09:06:54 +00:00
Edward Betts 5c51341e7f No need to enumerate chunks. 2020-03-04 09:05:56 +00:00
Edward Betts 3999817cc9 Handle missing institution labels. 2020-03-04 09:05:35 +00:00
Edward Betts 3e551d89d9 Don't try to set label for new item during save. 2020-03-03 15:20:04 +00:00
Edward Betts 93df781115 Better handling of read timeout from APIs 2020-01-08 15:39:25 +00:00
Edward Betts 9bbbb45fbb Show last non library frame on error page 2020-01-08 15:38:59 +00:00
Edward Betts 0ff8545641 Stop catalog page from throwing errors. 2020-01-07 22:03:31 +00:00
Edward Betts d63e6b1218 Reverse get_image_detail_with_cache() bug fix 2020-01-07 21:59:20 +00:00
Edward Betts 76f6e3f994 Bug fix get_image_detail_with_cache() 2020-01-07 21:57:05 +00:00
Edward Betts 849aa57780 Show locals in last frame during traceback. 2020-01-07 14:40:15 +00:00
Edward Betts 19c4a7d221 Remove debugging output. 2020-01-07 14:32:04 +00:00
Edward Betts 31cecb5c90 Show arguments of last function during error. 2020-01-07 14:29:52 +00:00
Edward Betts 3d3e66fb35 Drop unused import. 2020-01-01 14:24:29 +00:00
Edward Betts 63392b63bf Warn for non-artwork items. 2019-12-31 08:58:37 +00:00
Edward Betts 54b94923e6 Add pager to recent changes. 2019-12-30 16:11:19 +00:00
Edward Betts 28a03212f5 Use database to pick random artwork
Now we store details of artworks in the local database, we don't need to
use the Wikidata query service to pick a random artwork.
2019-12-30 09:16:18 +00:00
Edward Betts 1814b23b46 Only show items with an image. 2019-12-18 19:13:23 +00:00
Edward Betts 6f66e85b1e Increase facet limit. 2019-12-18 19:03:54 +00:00
Edward Betts 1354743ded Increase property page size. 2019-12-18 19:00:26 +00:00
Edward Betts 44b26b94eb Redirect start to browse page 2019-12-18 18:54:44 +00:00
Edward Betts 8e606499c9 Add pager to property page 2019-12-18 18:49:15 +00:00
Edward Betts b952213b23 Switch to using database for browse pages. 2019-12-18 15:06:24 +00:00
Edward Betts 7313df54f7 Rename ArtworkItem to Item and add more fields 2019-12-17 16:10:45 +00:00
Edward Betts f1d1542d3d Bug fix for 'file name too long' error 2019-12-12 15:25:43 +00:00
Edward Betts 24d44be4b7 Fix tool name 2019-12-10 15:45:14 +00:00
Edward Betts ae9cb514ca Add toolinfo.json
This is so WADE will appear in the Tools Directory.
2019-12-10 15:40:55 +00:00
Edward Betts 19e82a34cd Optimize browse page facet query 2019-11-27 12:42:07 +00:00
Edward Betts b894188f1a Record page title and endpoint with query 2019-11-27 10:00:00 +00:00
Edward Betts d94d1bb170 Save query template name 2019-11-26 17:21:58 +00:00
Edward Betts e849f18660 Move WDQS report and add a heading. 2019-11-26 16:07:57 +00:00
Edward Betts 0ef6eced13 Show more than just paintings on property page 2019-11-26 16:01:02 +00:00
Edward Betts c649179caf Record WQDS details and show report. 2019-11-26 14:01:14 +00:00
Edward Betts 75257632ba Show more than just paintings during browse 2019-11-25 13:46:25 +00:00
Edward Betts 036a4be5ed Expand focus from paintings to more artworks
Replace all references to 'painting' with 'artwork'
2019-11-25 11:49:34 +00:00
Edward Betts df8ff30b64 Catch missing image detail and trigger cache refresh. 2019-11-25 10:04:23 +00:00