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 { Box, Button, MenuItem } from '@mui/material'; | |
import { Field, Form, Formik } from 'formik'; | |
import React, { useState } from 'react'; | |
import { TextField } from 'formik-mui'; | |
export default function SelectDemo({ regions, countries, cities, cityId }) { | |
const { countryId = 0 } = cities.find((city) => city.id === cityId); | |
const { regionId = 0 } = countries.find( | |
(country) => country.id === countryId |
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
from datetime import datetime | |
from dateutil.relativedelta import * | |
FIRST_DAY = 1 | |
LAST_DAY = 31 | |
TODAY = datetime.combine(datetime.today(), datetime.min.time()) | |
#args_string = '@months=-1,weekday=MO(-1),hour=12' | |
args_string = '@months=-1,day=LAST_DAY,hour=12' |
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
// Adapted from https://www.postgresql.org/docs/12/errcodes-appendix.html | |
export enum PgSuccessfulCompletion { | |
SuccessfulCompletion = '00000', | |
} | |
export enum PgWarning { | |
Warning = '01000', | |
DynamicResultSetsReturned = '0100C', | |
ImplicitZeroBitPadding = '01008', |