Compare commits
2 commits
ceadea03ab
...
b619c3bf2a
Author | SHA1 | Date | |
---|---|---|---|
b619c3bf2a | |||
113f6b1db6 |
2 changed files with 11 additions and 1 deletions
10
.woodpecker/lint.yml
Normal file
10
.woodpecker/lint.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
when:
|
||||||
|
branch: main
|
||||||
|
steps:
|
||||||
|
- name: lint
|
||||||
|
image: python:3-alpine
|
||||||
|
commands:
|
||||||
|
- python -m pip install --upgrade pip
|
||||||
|
- python -m pip install -r requirements.txt
|
||||||
|
- python -m pip install ruff
|
||||||
|
- ruff check .
|
2
scl.py
2
scl.py
|
@ -411,7 +411,7 @@ with Session(engine) as session:
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
lookup_active_outages_statement = select(SclOutage).where(
|
lookup_active_outages_statement = select(SclOutage).where(
|
||||||
SclOutage.no_longer_in_response_time == None
|
SclOutage.no_longer_in_response_time == None # noqa: E711 - Syntax must stay this way for SQLAlchemy
|
||||||
)
|
)
|
||||||
for active_outage in session.scalars(lookup_active_outages_statement):
|
for active_outage in session.scalars(lookup_active_outages_statement):
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in a new issue