Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 4, 2024
1 parent c8a69fc commit 6476daf
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/electron/frontend/core/components/DateTimeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const renderDateTime = (value) => {

export const resolveDateTime = renderDateTime;


export class DateTimeSelector extends LitElement {
static get styles() {
return css`
Expand Down
2 changes: 1 addition & 1 deletion src/electron/frontend/core/components/JSONSchemaForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class JSONSchemaForm extends LitElement {
dialogType: { type: String, reflect: false },
dialogOptions: { type: Object, reflect: false },
globals: { type: Object, reflect: false },
validateEmptyValues: { type: Boolean, reflect: true }
validateEmptyValues: { type: Boolean, reflect: true },
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/electron/frontend/core/components/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Search extends LitElement {
}

#close = () => {
console.log('CLOSING', this.getSelectedOption())
console.log("CLOSING", this.getSelectedOption());
if (this.listMode === "input" && this.getAttribute("interacted") === "true") {
this.setAttribute("interacted", false);
this.#onSelect(this.getSelectedOption());
Expand Down
2 changes: 1 addition & 1 deletion src/electron/frontend/core/components/pages/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class Page extends LitElement {
...conversionOptions, // Any additional conversion options override the defaults
interfaces: globalState.interfaces,
alignment,
timezone: this.workflow.timezone.value
timezone: this.workflow.timezone.value,
};

fileConfiguration.push(payload);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const questions = {
// -------------------------------------------------------------------------------------------

const getSchema = (questions) => {

// Inject latest timezone schema each render
questions.timezone = { ...questions.timezone, ...timezoneSchema };

Expand Down Expand Up @@ -123,11 +122,9 @@ const getSchema = (questions) => {
return {
schema: structuredClone(projectWorkflowSchema),
defaults,
dependents
}


}
dependents,
};
};

// ----------------------------------------------------------------------
// ------------------------ Preform Class -------------------------------
Expand Down Expand Up @@ -158,7 +155,6 @@ export class GuidedPreform extends Page {
};

updateForm = () => {

const { schema, dependents, defaults } = getSchema(questions);
const projectState = this.info.globalState.project ?? {};
if (!projectState.workflow) projectState.workflow = {};
Expand Down
1 change: 0 additions & 1 deletion src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,6 @@ def convert_to_nwb(

timezone = info.get("timezone")


try:

# add a subdirectory to a filepath if stub_test is true
Expand Down
4 changes: 3 additions & 1 deletion src/pyflask/namespaces/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ class GetTimezones(flask_restx.Resource):
)
def get(self) -> Union[Dict[str, int], None]:
from zoneinfo import available_timezones

return list(available_timezones())


@time_namespace.route("/timezone")
class GetTimezones(flask_restx.Resource):
Expand All @@ -26,4 +27,5 @@ class GetTimezones(flask_restx.Resource):
)
def get(self) -> Union[Dict[str, int], None]:
from tzlocal import get_localzone

return str(get_localzone())
2 changes: 1 addition & 1 deletion src/schemas/timezone.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ready.timezones.then((timezones) => {
timezoneSchema.search = true

const filteredTimezones = timezoneSchema.enum = timezones.filter(tz => {
return tz.split('/').length > 1
return tz.split('/').length > 1
&& !tz.toLowerCase().includes('etc/')
});

Expand Down

0 comments on commit 6476daf

Please sign in to comment.