-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1099 from akrherz/250207
Omnibus
- Loading branch information
Showing
6 changed files
with
73 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Update The Test Database. | ||
The test database instance for CI has static data for testing. This is static | ||
from the time of the docker image build. This script runs from GHA and does | ||
some mucking with the database to improve coverage. | ||
""" | ||
|
||
from pyiem.database import get_sqlalchemy_conn, sql_helper | ||
|
||
|
||
def main(): | ||
"""Go Main.""" | ||
with get_sqlalchemy_conn("id3b") as conn: | ||
conn.execute( | ||
sql_helper(""" | ||
update ldm_product_log SET | ||
entered_at = now() - ('2024-12-03 19:30+00'::timestamptz - entered_at), | ||
valid_at = now() - ('2024-12-03 19:30+00'::timestamptz - valid_at), | ||
wmo_valid_at = now() - | ||
('2024-12-03 19:30+00'::timestamptz - wmo_valid_at) | ||
where entered_at between '2024-12-03 16:00+00' | ||
and '2024-12-03 20:00+00' | ||
""") | ||
) | ||
conn.commit() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// https://stackoverflow.com/questions/34338411 | ||
|
||
import 'https://code.jquery.com/jquery-3.7.1.min.js' | ||
export default window.jQuery.noConflict(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters