Skip to content

Commit

Permalink
Fixes DB issues. Removes use of beautiful charts.
Browse files Browse the repository at this point in the history
  • Loading branch information
vega113 committed Sep 1, 2023
1 parent 7057fa6 commit c9c80dc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ db_dump
/public/styles.*.js
/public/polyfills.*.js
/.env
/ui/node_modules
/node_modules
package-lock.json
package.json
2 changes: 1 addition & 1 deletion app/dao/EmotionDao.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class EmotionDao {
}

def delete(id: String)(implicit connection: Connection): Int = {
SQL("DELETE FROM emotions WHERE emotion_id = {id}").on(Symbol("id") -> id).executeUpdate()
SQL("DELETE FROM emotions WHERE emotion_id = {id}").on("id"-> id).executeUpdate()
}

def findById(id: String)(implicit connection: Connection): Option[Emotion] = {
Expand Down
4 changes: 2 additions & 2 deletions conf/db/data/triggers.csv
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ trigger_id,trigger_name,trigger_parent_id,created_by_user,description,created
31,Travel_destinations,22,,Travel destinations,2023-03-31 07:13:18
32,Nature,22,,Nature,2023-03-31 07:13:18
33,Social_gatherings,22,,Social gatherings,2023-03-31 07:13:18
34,Places_with_specific_memories,22,,Places with specific memories,2023-03-31 07:13:1
35,Other,,,Other,2023-03-31 07:13:1
34,Places_with_specific_memories,22,,Places with specific memories,2023-03-31 07:13:18
35,Other,,,Other,2023-03-31 07:13:18
4 changes: 1 addition & 3 deletions ui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import {MatGridListModule} from "@angular/material/grid-list";
import {MatTooltipModule} from "@angular/material/tooltip";
import {MatTabsModule} from "@angular/material/tabs";
import {NgxChartsModule} from "@swimlane/ngx-charts";
import { BeautifulChartsModule } from 'ngx-beautiful-charts';
import { CustomDatePickerComponent } from './custom-date-picker/custom-date-picker.component';

export const MAT_DATE_FNS_FORMATS = {
Expand Down Expand Up @@ -104,8 +103,7 @@ export const MAT_DATE_FNS_FORMATS = {
MatGridListModule,
MatTooltipModule,
MatTabsModule,
NgxChartsModule,
BeautifulChartsModule
NgxChartsModule

],
providers: [{ provide: DateAdapter, useClass: DateFnsAdapter }, {
Expand Down
2 changes: 0 additions & 2 deletions ui/src/app/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ <h2>Loading Emotions Chart...</h2>
<ng-container *ngIf="!isLoading">
<div class="chart-container">
<!-- Render the emotions sunburst chart here -->
<ngx-sunburst-chart [width]="700"
[data]="chartData" colorScheme="colorful"></ngx-sunburst-chart>

</div>
</ng-container>
Expand Down

0 comments on commit c9c80dc

Please sign in to comment.