Skip to content

Commit

Permalink
修改数据库记录时间为365天
Browse files Browse the repository at this point in the history
  • Loading branch information
Chikage0o0 authored Nov 7, 2023
1 parent acf00d2 commit d939595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/yande_popular/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl DB {
let key = key?;
let value = self.0.get(&key)?.unwrap();
let value = u64::from_be_bytes(value.as_ref().try_into().unwrap());
if timestamp - value > 60 * 60 * 24 * 30 {
if timestamp - value > 60 * 60 * 24 * 365 {
keys.push(key);
}
}
Expand Down

0 comments on commit d939595

Please sign in to comment.