Wykres commitów

56 Commity (master)

Autor SHA1 Wiadomość Data
Tomasz Golinski 48e43613d1 clang-format 2023-09-25 19:01:46 +02:00
Tomasz Golinski 48f92e64d8 Maybe it makes sense to use later of date_created and date_hidden? And what about events in the future? 2023-08-31 23:19:58 +02:00
Tomasz Golinski 2e08a99d20 Sort FTFs by find date, add events, use date_hidden 2023-08-31 22:13:21 +02:00
Tomasz Golinski 2a2a77caf3 Some cppcheck fixes 2023-08-30 22:43:49 +02:00
Tomasz Golinski 868b62bb2e Further refactor and simplifications 2023-08-30 17:01:22 +02:00
Tomasz Golinski 3f109a7047 Move around some consts, comment out code unused for now 2023-08-30 15:53:47 +02:00
Tomasz Golinski ee0704c539 Fix daylight saving problems
std::get_time doesn't set daylight saving time information, it causes various problems with std::mktime later on causing drifts of +/- 1h
2023-08-30 15:10:54 +02:00
Tomasz Golinski bde35a83b4 Fix FTF code, I don't know what changed, was cache_id really reported as string before? 2022-09-30 21:29:08 +02:00
Tomasz Golinski fdce7bc17c Cppcheck: add some consts 2022-09-01 17:23:29 +02:00
Tomasz Golinski 68813370b0 Apparently some OC sites store internal_id as a string (e.g. OCde) 2022-07-13 21:22:11 +02:00
Tomasz Golinski d673bdd7b9 cppcheck partial cleanup 2022-07-13 18:37:55 +02:00
Tomasz Golinski 89e9b4d8c6 Change some int to uint and thus silence warnings 2022-07-13 18:30:26 +02:00
Tomasz Golinski 54b077de6d Include list of FTFs 2022-07-13 01:11:44 +02:00
Tomasz Golinski fd8ceea907 Make explicit conversion to string in JSON parsing
For some reason old code no longer works, but including explicit request for string fixes the problem.
2022-05-16 21:11:43 +02:00
Tomasz Golinski 47f7edf3bc Add countries histogram 2021-09-05 19:44:44 +02:00
Tomasz Golinski 1f558ef50d Apparently database dump can contain cache codes with no data. Don't crash in that case 2021-01-03 04:52:34 +01:00
Tomasz Golinski e23fdcfcb8 Fix function to grab only ratings from OKapi - should use simpler OKapi call 2020-12-04 18:54:50 +01:00
Tomasz Golinski 32e1053c6b geofriends: add missing okapi bits 2020-10-31 21:51:25 +01:00
Tomasz Goliński 0a86f18d7e Function to grab only ratings from OKapi 2020-08-28 18:42:54 +02:00
Tomasz Goliński e6909c1575 Get ratings from OKapi 2020-08-28 17:38:28 +02:00
Tomasz Golinski 72dc1292da clang-format 2020-08-06 23:58:14 +02:00
Tomasz Golinski 1c5f7bfe98 Escape username in CURL requests 2020-08-06 21:53:27 +02:00
Tomasz Golinski 8c2d633a51 Restructure CURL code. There is no need to initialize CURL handle for each request, it can be reused. 2020-08-06 21:53:13 +02:00
Tomasz Golinski 9215f6ace9 Okapi function to update list of caches with full data.
Maybe SQL request to db should be made slimmer by using this function.
2020-08-05 02:26:40 +02:00
Tomasz Golinski de2beddbee Cppcheck: remove get_lat_lon function in Api class and morph it into a constructor of Position class 2020-07-06 17:15:28 +02:00
Tomasz Golinski d2688336e4 Change cache date from hidden to created 2020-03-21 04:52:11 +01:00
Tomasz Golinski f13f9782a1 Add timeout of 5s to Okapi connections 2020-03-21 04:00:19 +01:00
Tomasz Golinski 8edb4893f0 Fetch cache status 2020-03-06 10:55:57 +01:00
Tomasz Golinski 9a25aa1f33 Cache codes on OCde can be 7 chars long... 2020-02-29 23:20:03 +01:00
Tomasz Golinski d961ae6dab Fix a bug reintroduced while changing the containers: need to use set for codes to get rid of duplicates 2020-02-29 23:05:11 +01:00
Tomasz Golinski 3c2d9962d1 Get rid of explicit values of 500 and 1000 as max number of items per request in Okapi 2020-02-29 02:18:01 +01:00
Tomasz Golinski fc98a0a858 Fetch information if the cache was recommended by the user from Okapi 2020-02-29 02:14:31 +01:00
Tomasz Golinski 1a3a7e0747 Change containers used to store caches. std::set didn't allow to change elements inside and it was the easiest way to deal with extra data from the logs. 2020-02-29 02:04:55 +01:00
Tomasz Golinski f4c861867a clang-format 2020-02-17 21:27:51 +01:00
Tomasz Golinski 397eaf415f Change raw loop to std::algorithm find_if 2020-02-16 19:06:23 +01:00
Tomasz Golinski 2ab560f172 CPPCHECK: Change arguments to references, add some consts 2020-02-11 17:34:23 +01:00
Tomasz Golinski c59e01b556 Fix a problem when a cache had two "found" logs by the same user
Okapi produces an error if a cache code appers twice in a request. Simply replace a std::vector by std::map.
2020-01-28 04:49:11 +01:00
Tomasz Golinski e6dc8e930a Fill out correctly the source of a cache 2020-01-25 16:49:32 +01:00
Tomasz Golinski 5296e11a21 Add stats based on recommendations 2020-01-25 16:12:29 +01:00
Tomasz Golinski 74f220302c Redo cache list style and add stats related to hidden date 2020-01-25 15:26:14 +01:00
Tomasz Golinski 958834553c Some formatting and clang-format 2020-01-04 19:27:04 +01:00
Tomasz Golinski e3087f3695 Include link to user profile in HTML output 2020-01-04 19:24:00 +01:00
Tomasz Goliński 83273c8af4 Fix broken OKApi code 2019-11-10 14:59:31 +01:00
Tomasz Goliński 1f5338ffd2 Refactor code around textual data field in Cache class 2019-11-09 14:37:48 +01:00
Tomasz Goliński 08464564ee Add display of cache sizes 2019-11-08 22:50:21 +01:00
Tomasz Goliński ccf2ec1f28 Add histogram for years 2019-11-07 18:07:22 +01:00
Tomasz Goliński 53dc1f1c57 Add support from histograms sorted by first key and apply it to get month histogram 2019-11-07 17:45:55 +01:00
Tomasz Goliński 7aa45dc1cb Since C++ doesn't allow nesting pointers to members of a class, the simplest way to get a histogram for date components was to duplicate some of them as plain members
At the same time it was possible to convert month number to name.
2019-11-07 17:25:17 +01:00
Tomasz Goliński 6ccd8fcbcb Add date of find to Cache structure. Update OKApi source to grab it. It is not the cleanest solution possible.
Maybe Caches should be a std::map, not std::set...
2019-11-05 20:39:33 +01:00
Tomasz Golinski 6ba1da6203 Silence unused variable/parameter warnings 2019-10-06 02:58:24 +02:00