Wykres commitów

51 Commity (master)

Autor SHA1 Wiadomość Data
Tomasz Golinski 26d3bc56d2 Trivial cppcheck fixes 2023-12-24 23:38:55 +01: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 fdce7bc17c Cppcheck: add some consts 2022-09-01 17:23:29 +02:00
Tomasz Golinski 70499296d7 clang-format 2022-07-14 14:47:15 +02:00
Tomasz Golinski 47f7edf3bc Add countries histogram 2021-09-05 19:44:44 +02:00
Tomasz Golinski 8ef3e92ca3 cppcheck: fix for possibly undefined field 2021-06-01 21:26:52 +02:00
Tomasz Golinski 5f99c8019b Fix ocdb to correctly read German cache names as well 2021-01-03 03:56:09 +01:00
Tomasz Golinski 7539454052 SQL: fix previous commits by adding missing to_string
Removed part concerning the commit not picked
2021-01-03 03:03:16 +01:00
Tomasz Golinski c7d8d8ee53 SQL: change log type to integer using enum 2021-01-03 03:00:42 +01:00
Tomasz Golinski a98472eb1c SQL: update comments with database layout 2021-01-03 03:00:42 +01:00
Tomasz Golinski 6aa8e1426e SQL: change cache status to integer using pre-existing enum 2021-01-03 03:00:42 +01:00
Tomasz Golinski 5c37309c3d Fix a bug introduced while reworking ocdb code 2020-08-18 12:28:15 +02:00
Tomasz Golinski 72dc1292da clang-format 2020-08-06 23:58:14 +02:00
Tomasz Golinski c4a58021c9 Remove unused variable 2020-08-06 23:51:29 +02:00
Tomasz Golinski 7e3e9adb56 OCdb: get name for found and owned caches, don't get it for not found. 2020-08-05 01:32:32 +02:00
Tomasz Golinski 3c188ca1ff Add function to get owned caches from local db 2020-08-01 22:14:02 +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 cc8415d258 Cppcheck: make sure some struct members are initialized 2020-07-06 13:57:51 +02:00
Tomasz Golinski 942c52b998 OCDB: Function to get cache count for regions 2020-06-03 00:24:54 +02:00
Tomasz Golinski fe071c6e67 OCDB: Was there any sane reason why it was commented out? 2020-06-03 00:24:02 +02:00
Tomasz Golinski 3b232142b4 OCDB: Prevent data bleeding through from one cache to another 2020-06-03 00:21:31 +02:00
Tomasz Golinski 3901dfafc7 Add region histogram for caches not found 2020-05-24 16:56:10 +02:00
Tomasz Golinski e00ce62e72 OCdb exclude owned caches in not found list, extract also cache name 2020-03-29 19:52:49 +02:00
Tomasz Golinski 649e6e2795 Add cache status code for gpx and ocdb 2020-03-20 01:49:06 +01:00
Tomasz Golinski 6e6330975f Simplify a bit conditions in json checks 2020-03-02 22:58:34 +01:00
Tomasz Golinski 0fbdd6e3e9 Add some sanity check for json access
When json is const, access to non-existant key causes assert failure. Need to check first if the key exists
2020-03-02 22:58:14 +01:00
Tomasz Golinski 92bfb82eb2 Store type of log as an integer value in SQLite. 1 for found, 0 for not found, -1 for other 2020-03-02 21:55:19 +01:00
Tomasz Golinski 40a8143338 Change SQLite diff/terr fields to int by storing twice the number 2020-03-02 21:52:45 +01:00
Tomasz Golinski 8dd58d1a90 Change SQLite db init code 2020-03-02 19:23:34 +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 17e8a93b5b CPPCHECK: There is no such thing as 2 2020-02-11 17:34:52 +01:00
Tomasz Golinski 2ab560f172 CPPCHECK: Change arguments to references, add some consts 2020-02-11 17:34:23 +01:00
Tomasz Golinski fde854b041 Correct initialization of SQLite db with geodb 2020-01-25 16:33:57 +01:00
Tomasz Goliński b40b29de80 Another run of clang-format 2019-11-04 21:44:08 +01:00
Tomasz Goliński dc42212e31 Throw when can't read database revision 2019-11-04 21:40:24 +01:00
Tomasz Goliński 46a7321434 Pull more cache data from local db 2019-11-04 11:09:47 +01:00
Tomasz Golinski 0f15dcb82c Restrict caches not found to available caches 2019-10-06 13:08:37 +02:00
Tomasz Golinski 6ba1da6203 Silence unused variable/parameter warnings 2019-10-06 02:58:24 +02:00
Tomasz Golinski 9d9601e4ca Encapsulate revision in OCdb 2019-10-06 02:46:07 +02:00
Tomasz Golinski f7e02612d8 Add SQLite transactions 2019-10-06 02:44:58 +02:00
Tomasz Golinski d2682e5860 Move the code updating revision of SQLite database out of destructor to places where it can really change. 2019-10-04 22:06:59 +02:00
Tomasz Golinski 5eaf9ec43e Possibility to grab caches which were not found by a certain user 2019-10-04 02:30:17 +02:00
Tomasz Golinski 1a2a096651 Add parent class Api to OCdb 2019-10-04 00:43:39 +02:00
Tomasz Golinski bafa767382 Forgot to put 'type' into database. On the other hand, no need to put 'text' there. 2019-10-01 23:57:04 +02:00
Tomasz Golinski ab2f66c87a Don't generate empty SQL commands if no data is to be changed. 2019-10-01 17:29:17 +02:00
Tomasz Golinski 2a00a57b3c Correct revision tracking code 2019-10-01 17:19:05 +02:00
Tomasz Golinski fb196b1c35 Adjust debug levels 2019-10-01 17:11:38 +02:00
Tomasz Golinski dc91a5c1ed Possibility to apply changelogs grabbed from OKapi 2019-10-01 01:49:25 +02:00
Tomasz Golinski 27d29af9ed Read revision from existing database 2019-10-01 01:48:49 +02:00