Skip to content

Commit

Permalink
ci: update archive frequency, legistar
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Feb 12, 2021
1 parent f79065c commit 00f5db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Archive

on:
schedule:
- cron: "7 11 * * *"
- cron: "7 2,11 * * *"
workflow_dispatch:

env:
Expand Down
2 changes: 1 addition & 1 deletion city_scrapers/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def get_item_urls(self, item):
MAX_LINKS = 3
if isinstance(item, Meeting):
links = []
if "legistar" in item["source"] and "Calendar.aspx" not in item["source"]:
if "legistar" in item["source"]:
links = [item["source"]]
links.extend(
[link.get("href") for link in item.get("links", [])][:MAX_LINKS]
Expand Down

0 comments on commit 00f5db6

Please sign in to comment.