🎨 Run updated prettier
This commit is contained in:
@ -5,7 +5,7 @@ const baseUrl = "https://mobileapi.dsbcontrol.de";
|
||||
|
||||
export async function getAuthtoken(username, password) {
|
||||
const response = await axios.get(
|
||||
`${baseUrl}/authid?user=${username}&password=${password}&bundleid&appversion&osversion&pushid`
|
||||
`${baseUrl}/authid?user=${username}&password=${password}&bundleid&appversion&osversion&pushid`,
|
||||
);
|
||||
if (response.data == "") throw "Wrong DSB username or password";
|
||||
return response.data;
|
||||
@ -13,7 +13,7 @@ export async function getAuthtoken(username, password) {
|
||||
|
||||
export async function getTimetables(authtoken) {
|
||||
const response = await axios.get(
|
||||
`${baseUrl}/dsbtimetables?authid=${authtoken}`
|
||||
`${baseUrl}/dsbtimetables?authid=${authtoken}`,
|
||||
);
|
||||
const timetables = response.data;
|
||||
|
||||
|
@ -105,7 +105,7 @@ export class Parser {
|
||||
substitution.class.sort().join(",") &&
|
||||
substitution.changedSubject == change.subject &&
|
||||
substitution.teacher == (change.teacher || "");
|
||||
}
|
||||
},
|
||||
);
|
||||
const matchingSubstitution = knownSubstitutions[matchingSubstitutionId];
|
||||
|
||||
@ -148,7 +148,7 @@ export class Parser {
|
||||
});
|
||||
log(
|
||||
"Insert / DB",
|
||||
`Created new substitution: S:${newSubstitution.id} C:${substitutionChange.id}`
|
||||
`Created new substitution: S:${newSubstitution.id} C:${substitutionChange.id}`,
|
||||
);
|
||||
} else {
|
||||
// If the entry was updated, find the differences
|
||||
@ -178,7 +178,7 @@ export class Parser {
|
||||
});
|
||||
log(
|
||||
"Insert / DB",
|
||||
`Found changed substitution: S:${matchingSubstitution.id} C:${substitutionChange.id}`
|
||||
`Found changed substitution: S:${matchingSubstitution.id} C:${substitutionChange.id}`,
|
||||
);
|
||||
}
|
||||
// Remove the substitution from the array to later know the
|
||||
@ -219,7 +219,7 @@ export class Parser {
|
||||
});
|
||||
log(
|
||||
"Insert / DB",
|
||||
`Deleted removed substitution: S:${remainingSubstitution.id} C:${substitutionChange.id}`
|
||||
`Deleted removed substitution: S:${remainingSubstitution.id} C:${substitutionChange.id}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user