Add history table and modify card_stats
This commit is contained in:
1 parent
1f3ad22e05
commit
663fa377b1
6 files changed
+153
-5
No files matched your search
@@ -4,11 +4,16 @@ use crate::data::entities::HistoryItem;
|
||||
use crate::fs::*;
|
||||
use crate::notification::NotificationData::PermissionDenied;
|
||||
use crate::notification::{MaybeError, NotificationData};
|
||||
use chrono::DateTime;
|
||||
use chrono::{DateTime, NaiveDate};
|
||||
use std::fs::{File, OpenOptions};
|
||||
use std::io::Write;
|
||||
use std::io::{BufRead, BufReader};
|
||||
use std::path::PathBuf;
|
||||
use rusqlite::Connection;
|
||||
|
||||
pub fn get_open_count_of_set(id: Id, connection: &Connection) -> Result<Vec<(NaiveDate, u32)>, NotificationData>{
|
||||
todo!()
|
||||
}
|
||||
|
||||
pub fn get_history_of_set(id: Id) -> Result<Vec<HistoryItem>, NotificationData> {
|
||||
let app_dir = history_dir()?;
|
||||
|
||||
Reference in new issue
Block a user