component models

This commit is contained in:
jude
2022-02-19 22:11:21 +00:00
parent afc376c44f
commit 06c4deeaa9
15 changed files with 269 additions and 184 deletions

View File

@ -1,4 +1,3 @@
use crate::Database;
use chrono::Duration;
use chrono_tz::Tz;
use lazy_static::lazy_static;
@ -20,6 +19,8 @@ use sqlx::{
Executor,
};
use crate::Database;
lazy_static! {
pub static ref TIMEFROM_REGEX: Regex =
Regex::new(r#"<<timefrom:(?P<time>\d+):(?P<format>.+)?>>"#).unwrap();