mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
refactor(control): remove unnecessary logging
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { dev } from '$app/environment';
|
||||
import { db } from './files_display.db';
|
||||
import { get_display_by_id } from './stores/displays';
|
||||
import {
|
||||
@@ -118,10 +117,6 @@ async function start_task_loop() {
|
||||
case 'sync':
|
||||
break;
|
||||
}
|
||||
|
||||
if (dev) {
|
||||
console.debug('AKTUELL IN TASKS', tasks.length);
|
||||
}
|
||||
tasks.shift(); // Remove current_task from tasks
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import { get_uuid, image_content_hash } from '../utils';
|
||||
import { get_screenshot } from '../api_handler';
|
||||
import { delete_and_deselect_unique_files_from_display } from './files';
|
||||
import { db } from '../files_display.db';
|
||||
import { dev } from '$app/environment';
|
||||
|
||||
export async function is_display_name_taken(name: string): Promise<boolean> {
|
||||
const exists = await db.displays.where('name').equals(name).first();
|
||||
@@ -24,15 +23,9 @@ export async function add_display(
|
||||
let group_id: string;
|
||||
if (group) {
|
||||
group_id = group.id;
|
||||
if (dev) {
|
||||
console.debug('DISPLAYGROUP WURDE NICHT ERSTELLT');
|
||||
}
|
||||
} else {
|
||||
group_id = get_uuid();
|
||||
await db.display_groups.put({ id: group_id, position: 0 });
|
||||
if (dev) {
|
||||
console.info('DISPLAYGROUP WURDE ERSTELLT');
|
||||
}
|
||||
}
|
||||
const element_count_in_group = (await db.displays.where('group_id').equals(group_id).toArray())
|
||||
.length;
|
||||
|
||||
Reference in New Issue
Block a user