]>
ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/log
Philipp Spitzer [Mon, 29 Nov 2021 22:12:02 +0000 (23:12 +0100)]
Further work on parsing (now a map is parsed).
Philipp Spitzer [Mon, 29 Nov 2021 22:11:39 +0000 (23:11 +0100)]
Add type annotations.
Philipp Spitzer [Sun, 28 Nov 2021 22:14:30 +0000 (23:14 +0100)]
Work on parsing wikicode (currently Rodelbahnbox).
Philipp Spitzer [Sun, 28 Nov 2021 21:51:38 +0000 (22:51 +0100)]
Add some type annotations.
Philipp Spitzer [Sun, 28 Nov 2021 21:45:09 +0000 (22:45 +0100)]
Add functions lonlat_to_json and lonlat_ele_to_json.
Philipp Spitzer [Sun, 28 Nov 2021 21:44:23 +0000 (22:44 +0100)]
Correctly represent operator in Rodelbahnbox dict.
Philipp Spitzer [Sun, 28 Nov 2021 10:45:26 +0000 (11:45 +0100)]
Start to work on wikitext to JSON conversion.
Philipp Spitzer [Sun, 28 Nov 2021 10:45:00 +0000 (11:45 +0100)]
Display reason for skips to user.
Philipp Spitzer [Sun, 28 Nov 2021 10:44:35 +0000 (11:44 +0100)]
Implement JSON validation after edit.
Philipp Spitzer [Sun, 31 Oct 2021 22:57:15 +0000 (23:57 +0100)]
Name of public_transport_stop was split.
Philipp Spitzer [Sun, 31 Oct 2021 09:16:13 +0000 (10:16 +0100)]
Order keys by schema when validating.
Philipp Spitzer [Fri, 29 Oct 2021 09:33:37 +0000 (11:33 +0200)]
Write function to resolve references ("$ref").
Philipp Spitzer [Fri, 29 Oct 2021 07:22:47 +0000 (09:22 +0200)]
Make original schema available everywhere (prepare to resolve $ref).
Philipp Spitzer [Fri, 29 Oct 2021 07:15:00 +0000 (09:15 +0200)]
Add test to check error message.
Philipp Spitzer [Fri, 29 Oct 2021 07:14:46 +0000 (09:14 +0200)]
JSON path now contains the keys directly.
Philipp Spitzer [Thu, 28 Oct 2021 20:32:19 +0000 (22:32 +0200)]
Type of arrays are not tested.
Philipp Spitzer [Tue, 26 Oct 2021 21:48:06 +0000 (23:48 +0200)]
Further work on order_json_keys.
Philipp Spitzer [Tue, 26 Oct 2021 21:08:49 +0000 (23:08 +0200)]
Start to work on function sorting JSON data based on JSON schema.
Philipp Spitzer [Tue, 26 Oct 2021 16:31:53 +0000 (18:31 +0200)]
Create bot to validate sledrun JSON.
Philipp Spitzer [Tue, 26 Oct 2021 14:56:02 +0000 (16:56 +0200)]
Move bot to bots directory.
Philipp Spitzer [Tue, 26 Oct 2021 14:55:15 +0000 (16:55 +0200)]
Create bot to edit JSON data.
Philipp Spitzer [Tue, 26 Oct 2021 09:23:03 +0000 (11:23 +0200)]
Simplify and improve viewing of public transport.
Philipp Spitzer [Tue, 26 Oct 2021 07:47:04 +0000 (09:47 +0200)]
Simplify sledrun markup creation by defining macro wr_page.
Philipp Spitzer [Tue, 26 Oct 2021 07:22:52 +0000 (09:22 +0200)]
Define macro for weblink.
Philipp Spitzer [Tue, 26 Oct 2021 07:14:55 +0000 (09:14 +0200)]
Improve rendering of sledrun as MediaWiki markup.
Philipp Spitzer [Sun, 24 Oct 2021 19:57:41 +0000 (21:57 +0200)]
Add description on how to use it.
Philipp Spitzer [Sun, 24 Oct 2021 19:54:59 +0000 (21:54 +0200)]
User script for pywikibot (https://gerrit.wikimedia.org/r/pywikibot/core.git).
Philipp Spitzer [Tue, 19 Oct 2021 20:32:19 +0000 (22:32 +0200)]
Add some type annotations.
Philipp Spitzer [Tue, 19 Oct 2021 20:32:07 +0000 (22:32 +0200)]
Copy converting JSON to wikitext from wradmin.
Philipp Spitzer [Wed, 13 Oct 2021 21:35:25 +0000 (23:35 +0200)]
Add some type annotations.
Philipp Spitzer [Wed, 29 Sep 2021 21:15:39 +0000 (23:15 +0200)]
The order of XML attributes is now retained.
Philipp Spitzer [Wed, 29 Sep 2021 21:15:11 +0000 (23:15 +0200)]
PEP8 improvements.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:54 +0000 (23:14 +0200)]
Use same order of columns as in database.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:32 +0000 (23:14 +0200)]
Mention package name in some imports.
Philipp Spitzer [Wed, 29 Sep 2021 21:14:05 +0000 (23:14 +0200)]
Remove unused imports.
Philipp Spitzer [Wed, 29 Sep 2021 21:13:47 +0000 (23:13 +0200)]
Remove Python 3.4 shebang.
Philipp Spitzer [Wed, 29 Sep 2021 21:13:19 +0000 (23:13 +0200)]
Add more type annotations.
Philipp Spitzer [Wed, 29 Sep 2021 21:12:26 +0000 (23:12 +0200)]
Avoid remaining usage of LonLat(None, None), instead None is used.
Philipp Spitzer [Wed, 29 Sep 2021 21:10:49 +0000 (23:10 +0200)]
Fix test usage of mwparserfromhell.
Philipp Spitzer [Wed, 29 Sep 2021 21:01:40 +0000 (23:01 +0200)]
New table structure in MediaWiki: slots and content.
Philipp Spitzer [Fri, 6 Aug 2021 21:16:53 +0000 (23:16 +0200)]
Add function create_template().
Philipp Spitzer [Fri, 6 Aug 2021 20:32:33 +0000 (22:32 +0200)]
Only allow floats in LonLat (and not None, None).
Philipp Spitzer [Fri, 6 Aug 2021 20:31:57 +0000 (22:31 +0200)]
Make use of format strings.
Philipp Spitzer [Fri, 6 Aug 2021 19:27:22 +0000 (21:27 +0200)]
Remove unused class ParseError.
Philipp Spitzer [Thu, 5 Aug 2021 20:39:20 +0000 (22:39 +0200)]
Update requirements.
Philipp Spitzer [Thu, 5 Aug 2021 20:39:12 +0000 (22:39 +0200)]
Better formatting and add some type hints.
Philipp Spitzer [Mon, 26 Jul 2021 20:28:30 +0000 (22:28 +0200)]
Parameter min and max of int_to_string are now minimum and maximum.
Philipp Spitzer [Mon, 26 Jul 2021 20:27:30 +0000 (22:27 +0200)]
Add type annotations and improve coding style.
Philipp Spitzer [Fri, 12 Feb 2021 12:41:54 +0000 (13:41 +0100)]
Deactivate Bavaria and Switzerland.
Philipp Spitzer [Fri, 12 Feb 2021 12:39:55 +0000 (13:39 +0100)]
Add Bavaria.
Philipp Spitzer [Thu, 11 Feb 2021 21:24:32 +0000 (22:24 +0100)]
Add DEM Switzerland.
Philipp Spitzer [Thu, 11 Feb 2021 11:10:05 +0000 (12:10 +0100)]
Implement bounding box check.
Philipp Spitzer [Tue, 9 Feb 2021 21:59:17 +0000 (22:59 +0100)]
Implement DEM for South Tyrol.
Philipp Spitzer [Tue, 26 Jan 2021 21:59:23 +0000 (22:59 +0100)]
Fix nodata results.
Philipp Spitzer [Tue, 26 Jan 2021 21:59:07 +0000 (22:59 +0100)]
Create test for wrdem.py.
Philipp Spitzer [Mon, 25 Jan 2021 23:13:31 +0000 (00:13 +0100)]
Small improvements in wrvalidators.py.
Philipp Spitzer [Mon, 25 Jan 2021 22:06:12 +0000 (23:06 +0100)]
Create module wrdem and script get_elevation.
Philipp Spitzer [Mon, 29 Jun 2020 20:50:07 +0000 (22:50 +0200)]
PEP 8 improvements.
Philipp Spitzer [Mon, 29 Jun 2020 20:49:55 +0000 (22:49 +0200)]
Fix test_wrreportcache_table.
Philipp Spitzer [Mon, 29 Jun 2020 20:52:55 +0000 (22:52 +0200)]
Copy testdb.sql from wradmin project.
Philipp Spitzer [Sat, 27 Jun 2020 20:56:12 +0000 (22:56 +0200)]
Map strings saved in database as binary to unicode strings in Python.
Philipp Spitzer [Sat, 27 Jun 2020 20:55:12 +0000 (22:55 +0200)]
Adjust expected data types in tests.
Philipp Spitzer [Sat, 27 Jun 2020 20:53:43 +0000 (22:53 +0200)]
Insert testdb.sql as raw SQL.
Philipp Spitzer [Tue, 23 Jun 2020 21:36:45 +0000 (23:36 +0200)]
Set version number to 0.7.0.
Philipp Spitzer [Tue, 23 Jun 2020 21:36:14 +0000 (23:36 +0200)]
Add mapping definition for MediaWiki table user_groups.
philipp [Fri, 10 Jan 2020 20:03:29 +0000 (20:03 +0000)]
Increase version number from 0.6.1 to 0.6.2.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2917
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Fri, 10 Jan 2020 20:03:28 +0000 (20:03 +0000)]
Support "real" UTF-8 by changing to utf8mb4 (winterrodeln tables) and binary (Mediawiki tables).
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2916
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Fri, 10 Jan 2020 20:03:26 +0000 (20:03 +0000)]
Include scripts in setup.py.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2915
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Sat, 21 Dec 2019 06:34:36 +0000 (06:34 +0000)]
Increase version number from 0.6.0 to 0.6.1.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2882
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Sat, 21 Dec 2019 06:34:35 +0000 (06:34 +0000)]
Change shabang to python3.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2881
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 21:20:43 +0000 (21:20 +0000)]
Remove obsolete file headers.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2877
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 21:20:41 +0000 (21:20 +0000)]
Make scripts more consistent (e.g. use argparse module).
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2876
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 21:20:40 +0000 (21:20 +0000)]
Make executable.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2875
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 21:20:39 +0000 (21:20 +0000)]
Convert to Python3.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2874
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:25:12 +0000 (20:25 +0000)]
Move updatewrsledruncache.py to scripts folder.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2873
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:24:45 +0000 (20:24 +0000)]
Move updatewrreportcache.py to scripts folder.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2872
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:24:19 +0000 (20:24 +0000)]
Move updatewrregioncache.py to scripts folder.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2871
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:23:53 +0000 (20:23 +0000)]
Move updatewrmapcache.py to scripts folder.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2870
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:23:19 +0000 (20:23 +0000)]
Move updatewrinncache.py to scripts folder.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2869
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:22:35 +0000 (20:22 +0000)]
Move createthumbnails.py to scripts folder.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2868
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:19 +0000 (20:19 +0000)]
Move command line interface to intermaps to separate file.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2867
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:18 +0000 (20:19 +0000)]
Update update_wrintermapsreport() to sub-functions.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2866
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:17 +0000 (20:19 +0000)]
Increase indent to avoid a Python warning in update_wrintermapssledrun.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2865
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:16 +0000 (20:19 +0000)]
Implement adding reports from wrintermapsreport to wrintermapsreportshistory.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2864
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:15 +0000 (20:19 +0000)]
Map new column first_check as well.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2863
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:14 +0000 (20:19 +0000)]
Dynamic UTF offset.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2862
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:13 +0000 (20:19 +0000)]
PEP 8 improvements.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2861
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:12 +0000 (20:19 +0000)]
We don't need the investigate() function anymore.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2860
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:11 +0000 (20:19 +0000)]
Make last_check a function parameter.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2859
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:10 +0000 (20:19 +0000)]
Create function update_wrintermapsreport().
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2858
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:10 +0000 (20:19 +0000)]
Add WrIntermapsReport and WrIntermapsReportHistory to mapping.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2857
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:09 +0000 (20:19 +0000)]
Fix typo in column names in mapping as well.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2856
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:08 +0000 (20:19 +0000)]
Use new wrpylib.orm classes.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2855
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:07 +0000 (20:19 +0000)]
Start to add ORM classes for MediaWiki and Winterrodeln tables.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2854
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:06 +0000 (20:19 +0000)]
Rename unused function main() to investigate().
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2853
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:05 +0000 (20:19 +0000)]
Draft helper script for intermap tables.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2852
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Tue, 17 Dec 2019 20:19:04 +0000 (20:19 +0000)]
Add new intermaps tables to mapping.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2851
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Fri, 29 Nov 2019 19:25:05 +0000 (19:25 +0000)]
Map mediawiki password field in mwdb.py.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2839
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Mon, 25 Dec 2017 21:17:44 +0000 (21:17 +0000)]
Now using explicit test database philipp_winterrodeln_wrpylib_wrpylib_test in test_wrmwdb.py.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2751
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
philipp [Mon, 25 Dec 2017 21:08:03 +0000 (21:08 +0000)]
Reuse test database for wrpylib tests.
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2750
7aebc617-e5e2-0310-91dc-
80fb5f6d2477