Feautre: Recipe export to xlsx Chore: Python 11 style type annotations Chore: Moved to sqlalchemy 2.0 Chore: Minimum python is 3.11 Fix: Fix nullability of a lot of fields in the database.
19 lines
532 B
TypeScript
19 lines
532 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
import { Observable } from 'rxjs/internal/Observable';
|
|
|
|
import { Attendance } from './attendance';
|
|
import { AttendanceService } from './attendance.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class AttendanceResolver {
|
|
constructor(private ser: AttendanceService) {}
|
|
|
|
resolve(route: ActivatedRouteSnapshot): Observable<Attendance> {
|
|
const date = route.paramMap.get('date');
|
|
return this.ser.get(date);
|
|
}
|
|
}
|