mirror of
https://github.com/mlesniew/elicznik.git
synced 2025-12-21 13:23:06 +01:00
Update for recent CSV API changes
This commit is contained in:
committed by
Michał Leśniewski
parent
30b39739a6
commit
cfb6902940
@@ -74,9 +74,9 @@ class ELicznikCSV(ELicznikBase):
|
|||||||
|
|
||||||
def _get_raw_data(self, start_date, end_date=None):
|
def _get_raw_data(self, start_date, end_date=None):
|
||||||
end_date = end_date or start_date
|
end_date = end_date or start_date
|
||||||
return self.session.post(
|
return self.session.get(
|
||||||
self.DATA_URL,
|
self.DATA_URL,
|
||||||
data={
|
params={
|
||||||
"form[from]": start_date.strftime("%d.%m.%Y"),
|
"form[from]": start_date.strftime("%d.%m.%Y"),
|
||||||
"form[to]": end_date.strftime("%d.%m.%Y"),
|
"form[to]": end_date.strftime("%d.%m.%Y"),
|
||||||
"form[type]": "godzin", # or "dzien"
|
"form[type]": "godzin", # or "dzien"
|
||||||
|
|||||||
Reference in New Issue
Block a user