Commit graph

250 commits

Author SHA1 Message Date
Edward Betts 396dbec50d Bootstrap 5 is missing card-columns, use masonry instead 2023-11-09 10:26:18 +01:00
Edward Betts 1523b23ba3 Bug fix broken assert 2023-11-09 10:20:43 +01:00
Edward Betts 3b69855c25 Bootstrap 5 change: 'sr-only' is now 'visually-hidden' 2023-11-09 07:53:33 +01:00
Edward Betts 2d7c879756 Use higher resolution images from Cmmons 2023-11-09 07:40:54 +01:00
Edward Betts e1d5f33d2e Type hint fixes 2023-11-09 07:40:37 +01:00
Edward Betts 441839e832 Not all artworks have an institution 2023-11-09 07:40:12 +01:00
Edward Betts d814ecf3a4 Adjust import style 2023-11-09 07:39:39 +01:00
Edward Betts e7004a08f4 Remove unused code 2023-11-09 07:39:16 +01:00
Edward Betts 00773cd5f9 Handle missing value for P571 property 2023-11-09 07:39:02 +01:00
Edward Betts ae0b2e5a51 CatalogDict: institution and URL can be None 2023-11-09 07:37:54 +01:00
Edward Betts f33f4b6394 mainsnak["datavalue"]["value"] can be a dict 2023-11-09 07:36:49 +01:00
Edward Betts 4446cbed6e Upgrade from bootstrap 4 to 5 2023-11-09 07:35:41 +01:00
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 cb3a9396de Handle deleted item for human 2020-11-01 15:21:27 +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 845666dd5a Switch to POST for Commons API call
Avoid crash caused by URL being too long.
2020-06-30 14:28:34 +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 117459bb8f Ignore requests.exceptions.TooManyRedirects for catalog page 2020-06-30 14:00:59 +01:00
Edward Betts 98d84054d6 Handle 'unknown value' in depicts statement
Closes: #30
2020-06-30 13:21:32 +01:00
Edward Betts dc4455bec5 Catch and ignore UnicodeDecodeError in wd_catalog 2020-06-30 13:09:03 +01:00
Edward Betts 52db7ac00f rijksmuseum URL can point to English catalog page 2020-06-30 11:27:46 +01:00
Edward Betts efa06c9e33 Avoid crash on empty catalog page 2020-06-30 11:23:15 +01:00
Edward Betts fdd8b23118 Follow redirects for artwork 2020-06-30 11:17:21 +01:00
Edward Betts 298bef5c6b Follow redirects
Closes: #27
2020-06-30 11:06:46 +01:00
Edward Betts 52a7f94fd0 Bug fix 2020-06-30 09:07:13 +01:00
Edward Betts 3191ae51b0 Bug fix saam parser 2020-06-30 09:05:22 +01:00
Edward Betts dc9989157c Refactor 2020-06-30 09:01:57 +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 6194874380 Allow edit via proxy to avoid global IP block 2020-04-22 16:44:04 +01:00
Edward Betts e903c4092f Add the ability to mail admin. 2020-04-22 16:43:51 +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 0aac0e46be Increase timeout for error mails. 2020-03-03 15:17:21 +00:00
Edward Betts 97ca0aaa34 Remove some unused code. 2020-01-16 14:01:43 +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 6ba4fc7e35 Correct URL for commons API. 2020-01-08 15:38:35 +00:00
Edward Betts c2ba2c988c Use last_frame for function_name 2020-01-08 15:38:16 +00:00
Edward Betts 0ff8545641 Stop catalog page from throwing errors. 2020-01-07 22:03:31 +00:00