Compare commits
No commits in common. "f31c23ea5134706c0967360eaf7af0cd317cafc3" and "992e299829a1472b52bfab8db5700a42b6a7a973" have entirely different histories.
f31c23ea51
...
992e299829
@ -444,21 +444,6 @@ class Database:
|
|||||||
properties.seed_id = {region_id}
|
properties.seed_id = {region_id}
|
||||||
""")
|
""")
|
||||||
|
|
||||||
def singleScrape_of_region(self, region_id: int, scrape_date_min: str, scrape_date_max: str):
|
|
||||||
return self.connection.sql(f"""
|
|
||||||
SELECT
|
|
||||||
JSON_EXTRACT(body, '$.content.days') as calendarBody,
|
|
||||||
FROM
|
|
||||||
consultancy_d.extractions
|
|
||||||
LEFT JOIN
|
|
||||||
consultancy_d.properties ON properties.id = extractions.property_id
|
|
||||||
WHERE
|
|
||||||
type == 'calendar' AND
|
|
||||||
properties.seed_id = {region_id} AND
|
|
||||||
extractions.created_at >= '{scrape_date_min}' AND
|
|
||||||
extractions.created_at < '{scrape_date_max}'
|
|
||||||
""")
|
|
||||||
|
|
||||||
def capacity_global(self):
|
def capacity_global(self):
|
||||||
return self.connection.sql(f"""
|
return self.connection.sql(f"""
|
||||||
SELECT
|
SELECT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user