Skip to content
Snippets Groups Projects
Commit dfcc96c6 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

resolve conflict

parents 3bae4aac 1a4d0953
Branches
No related tags found
2 merge requests!787Release,!749Add personal calendars, move from requests-cache to Django cache
Pipeline #12339 failed
...@@ -137,15 +137,9 @@ dmypy.json ...@@ -137,15 +137,9 @@ dmypy.json
# Cython debug symbols # Cython debug symbols
cython_debug/ cython_debug/
# Requests-cache
redmine_cache.sqlite
##################################################### #####################################################
# CUSTOM # CUSTOM
# requests cache
instagram_cache.sqlite
# direnv # direnv
.envrc .envrc
......
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
line_length = 88 line_length = 88
multi_line_output = 3 multi_line_output = 3
include_trailing_comma = true include_trailing_comma = true
known_third_party = PyPDF2,arrow,bleach,bs4,captcha,celery,dateutil,django,environ,faker,fastjsonschema,icalevnt,markdown,modelcluster,pirates,pytest,pytz,requests,sentry_sdk,taggit,wagtail,wagtailmetadata,weasyprint,yaml known_third_party = PyPDF2,arrow,bleach,bs4,captcha,celery,dateutil,django,environ,faker,fastjsonschema,icalevents,icalevnt,markdown,modelcluster,pirates,pytest,pytz,requests,sentry_sdk,taggit,wagtail,wagtailmetadata,weasyprint,yaml
...@@ -3,7 +3,7 @@ from datetime import date, timedelta ...@@ -3,7 +3,7 @@ from datetime import date, timedelta
import arrow import arrow
from django.db import migrations from django.db import migrations
from icalevnt import icalevents from icalevents import icalevents
from calendar_utils.parser import process_event_list from calendar_utils.parser import process_event_list
......
...@@ -4,7 +4,7 @@ from datetime import date, timedelta ...@@ -4,7 +4,7 @@ from datetime import date, timedelta
import arrow import arrow
from django.core.serializers.json import DjangoJSONEncoder from django.core.serializers.json import DjangoJSONEncoder
from django.db import models from django.db import models
from icalevnt import icalevents from icalevents import icalevents
from .parser import process_event_list from .parser import process_event_list
......
...@@ -7,7 +7,7 @@ import bleach ...@@ -7,7 +7,7 @@ import bleach
from django.conf import settings from django.conf import settings
if TYPE_CHECKING: if TYPE_CHECKING:
from icalevnt.icalparser import Event from icalevents.icalparser import Event
EVENT_KEYS = ("start", "end", "all_day", "summary", "description", "location") EVENT_KEYS = ("start", "end", "all_day", "summary", "description", "location")
......
...@@ -4,15 +4,20 @@ from django.db import migrations, models ...@@ -4,15 +4,20 @@ from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('district', '0108_alter_districtcenterpage_content_and_more'), ("district", "0108_alter_districtcenterpage_content_and_more"),
] ]
operations = [ operations = [
migrations.AddField( migrations.AddField(
model_name='districtpersonpage', model_name="districtpersonpage",
name='ical_calendar_url', name="ical_calendar_url",
field=models.URLField(blank=True, help_text='Podporuje Mrak, Google Kalendář a další. Návod na synchronizaci najdeš na pi2.cz/kalendare', max_length=256, null=True, verbose_name='iCal adresa kalendáře'), field=models.URLField(
blank=True,
help_text="Podporuje Mrak, Google Kalendář a další. Návod na synchronizaci najdeš na pi2.cz/kalendare",
max_length=256,
null=True,
verbose_name="iCal adresa kalendáře",
),
), ),
] ]
File added
...@@ -12,7 +12,7 @@ pirates<=0.7 ...@@ -12,7 +12,7 @@ pirates<=0.7
whitenoise whitenoise
opencv-python opencv-python
requests requests
icalevnt icalevents
ics ics
arrow arrow
sentry-sdk sentry-sdk
......
# #
# This file is autogenerated by pip-compile with Python 3.10 # This file is autogenerated by pip-compile with Python 3.11
# by the following command: # by the following command:
# #
# pip-compile base.in # pip-compile base.in
...@@ -68,8 +68,8 @@ cryptography==40.0.1 ...@@ -68,8 +68,8 @@ cryptography==40.0.1
# pyopenssl # pyopenssl
cssselect2==0.7.0 cssselect2==0.7.0
# via weasyprint # via weasyprint
datetime==4.3 datetime==4.9
# via icalevnt # via icalevents
decorator==5.1.1 decorator==5.1.1
# via ipython # via ipython
django==4.1.8 django==4.1.8
...@@ -117,8 +117,6 @@ draftjs-exporter==2.1.7 ...@@ -117,8 +117,6 @@ draftjs-exporter==2.1.7
# via wagtail # via wagtail
et-xmlfile==1.1.0 et-xmlfile==1.1.0
# via openpyxl # via openpyxl
exceptiongroup==1.1.1
# via cattrs
executing==1.2.0 executing==1.2.0
# via stack-data # via stack-data
fastjsonschema==2.16.3 fastjsonschema==2.16.3
...@@ -129,11 +127,11 @@ html5lib==1.1 ...@@ -129,11 +127,11 @@ html5lib==1.1
# via # via
# wagtail # wagtail
# weasyprint # weasyprint
httplib2==0.20.1 httplib2==0.20.4
# via icalevnt # via icalevents
icalendar==4.0.8 icalendar==4.0.9
# via icalevnt # via icalevents
icalevnt==0.1.26 icalevents==0.1.27
# via -r base.in # via -r base.in
ics==0.7.2 ics==0.7.2
# via -r base.in # via -r base.in
...@@ -198,7 +196,7 @@ pygments==2.15.0 ...@@ -198,7 +196,7 @@ pygments==2.15.0
# via ipython # via ipython
pyopenssl==23.1.1 pyopenssl==23.1.1
# via josepy # via josepy
pyparsing==2.4.7 pyparsing==3.0.9
# via httplib2 # via httplib2
pypdf2==3.0.1 pypdf2==3.0.1
# via -r base.in # via -r base.in
...@@ -208,7 +206,7 @@ python-dateutil==2.8.2 ...@@ -208,7 +206,7 @@ python-dateutil==2.8.2
# via # via
# arrow # arrow
# icalendar # icalendar
# icalevnt # icalevents
# ics # ics
pytz==2021.3 pytz==2021.3
# via # via
...@@ -217,7 +215,7 @@ pytz==2021.3 ...@@ -217,7 +215,7 @@ pytz==2021.3
# django-modelcluster # django-modelcluster
# djangorestframework # djangorestframework
# icalendar # icalendar
# icalevnt # icalevents
# l18n # l18n
pyyaml==6.0 pyyaml==6.0
# via -r base.in # via -r base.in
......
...@@ -28,7 +28,7 @@ inflection==0.5.1 ...@@ -28,7 +28,7 @@ inflection==0.5.1
# via pytest-factoryboy # via pytest-factoryboy
iniconfig==2.0.0 iniconfig==2.0.0
# via pytest # via pytest
packaging==23.0 packaging==23.1
# via # via
# pytest # pytest
# pytest-sugar # pytest-sugar
......
import json import json
import logging import logging
from datetime import date, timedelta
import requests import requests
from datetime import date, timedelta
from django.core.cache import cache from django.core.cache import cache
from django.db import models from django.db import models
from django.utils import timezone from django.utils import timezone
......
...@@ -3,7 +3,7 @@ from datetime import datetime ...@@ -3,7 +3,7 @@ from datetime import datetime
from pathlib import Path from pathlib import Path
import pytest import pytest
from icalevnt.icalparser import Event from icalevents.icalparser import Event
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
......
from datetime import datetime from datetime import datetime
from zoneinfo import ZoneInfo
import arrow
import pytest import pytest
from icalevnt.icalparser import Event from icalevents.icalparser import Event
from calendar_utils.parser import ( from calendar_utils.parser import (
process_event_list, process_event_list,
...@@ -20,7 +18,7 @@ def test_split_events(sample_response, sample_future_events, sample_past_events) ...@@ -20,7 +18,7 @@ def test_split_events(sample_response, sample_future_events, sample_past_events)
@pytest.mark.freeze_time("2022-05-13") @pytest.mark.freeze_time("2022-05-13")
def test_split_events(sample_events, sample_future_events, sample_past_events): def test_split_dist_list(sample_events, sample_future_events, sample_past_events):
past_events, future_events = split_event_dict_list(sample_events) past_events, future_events = split_event_dict_list(sample_events)
assert sample_past_events == past_events assert sample_past_events == past_events
assert sample_future_events == future_events assert sample_future_events == future_events
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment