This commit is contained in:
AJ
2024-07-10 09:52:22 +02:00
parent 8a8901c30a
commit d448705f1c
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ bool DBHandler::createVeranstaltung(const std::string& name, const std::string&
"INSERT INTO Veranstaltung (name, ort, raum, dauer) VALUES ({}, {}, {}, {})", "INSERT INTO Veranstaltung (name, ort, raum, dauer) VALUES ({}, {}, {}, {})",
W.quote(name), W.quote(cmp), W.quote(raum), W.quote(dauer) W.quote(name), W.quote(cmp), W.quote(raum), W.quote(dauer)
); );
fmt::println(query); fmt::print(query);
W.exec(query); W.exec(query);
W.commit( ); W.commit( );
return true; return true;

View File

@@ -13,7 +13,7 @@ inline static const std::map<std::string, std::string>& load_config( ) {
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
std::string filename = std::string(std::getenv("USER")) + "\\config.cfg"; std::string filename = std::string(std::getenv("USER")) + "\\config.cfg";
#elif defined(__unix__) || defined(__APPLE__) #elif defined(__unix__) || defined(__APPLE__)
std::string filename = std::string(std::getenv("HOME")) + "/Dokumente/git/EinsatzplanQT/config.cfg"; std::string filename = std::string(std::getenv("HOME")) + "/Dokumente/Studium/Studium Dokumente/4. Semester/SWE/EinsatzplanQT/config.cfg";
#endif #endif
if (!is_loaded || fn != filename) { if (!is_loaded || fn != filename) {