forked from Lea/UntisBot
maybe it works properly now, idfk
This commit is contained in:
parent
982718ab28
commit
18f1f16c28
|
@ -41,7 +41,7 @@ export async function run() {
|
||||||
ro: 'Room'
|
ro: 'Room'
|
||||||
}
|
}
|
||||||
for (const prop of ['kl', 'te', 'su', 'ro']) {
|
for (const prop of ['kl', 'te', 'su', 'ro']) {
|
||||||
if (lesson[prop]?.[0] != kLesson[prop]?.[0])
|
if (lesson[prop]?.[0] == kLesson[prop]?.[0])
|
||||||
desc += `**${propFullName[prop]}:** ${kLesson[prop]?.[0]?.longname} ${kLesson[prop]?.[0]?.longname != kLesson[prop]?.[0]?.name ? `(${(kLesson[prop]?.[0]?.name)})` : ''} \u200b **=>** \u200b ${lesson[prop]?.[0]?.longname} ${lesson[prop]?.[0]?.longname != lesson[prop]?.[0]?.name ? `(${lesson[prop]?.[0]?.name})` : ''} \n`;
|
desc += `**${propFullName[prop]}:** ${kLesson[prop]?.[0]?.longname} ${kLesson[prop]?.[0]?.longname != kLesson[prop]?.[0]?.name ? `(${(kLesson[prop]?.[0]?.name)})` : ''} \u200b **=>** \u200b ${lesson[prop]?.[0]?.longname} ${lesson[prop]?.[0]?.longname != lesson[prop]?.[0]?.name ? `(${lesson[prop]?.[0]?.name})` : ''} \n`;
|
||||||
}
|
}
|
||||||
if (lesson.activityType != kLesson.activityType)
|
if (lesson.activityType != kLesson.activityType)
|
||||||
|
|
Loading…
Reference in a new issue