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
import asyncio | |
import re | |
from dataclasses import dataclass | |
from os import PathLike | |
from typing import List | |
class StubAsyncProcess(asyncio.subprocess.Process): | |
predefined_returncode = 0 | |
predefined_communicate_return = (b"", b"") |
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
document.getElementById("form-branch::categorySection::itemrow::renderedItem::nextrow:1:verticalDisplay::scaleOption:0:radioValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:1:renderedItem::nextrow:2:verticalDisplay::scaleOption:0:radioValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:2:renderedItem::nextrow:3:verticalDisplay::scaleOptions:0:choiceValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:3:renderedItem::nextrow:4:verticalDisplay::scaleOptions:0:choiceValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:4:renderedItem::nextrow:5:verticalDisplay::scaleOptions:0:choiceValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:5:renderedItem::nextrow:6:verticalDisplay::scaleOption:0:radioValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:6:renderedItem::nextrow:7:verticalDisplay::scaleOptions:0:choi |
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
""" | |
Singleton class encapsulating a psycopg2 connection. | |
""" | |
import psycopg2 | |
from psycopg2.extras import DictCursor | |
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) | |
psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY) | |
class DB(object): |