Indentation.

This commit is contained in:
Edu4rdSHL 2021-04-16 00:54:27 -05:00
parent 890666e9bc
commit 8f3c794631
No known key found for this signature in database
GPG key ID: 3A574A4009F553E5

View file

@ -80,7 +80,7 @@ pub fn return_all_data(connection: &Connection) -> Result<Vec<Database>> {
pub fn return_only_x_items(connection: &Connection, args: &Args) -> Result<Vec<Database>> {
let mut snapshots_data: Vec<Database> = Vec::new();
let mut statement = connection.prepare(&format!("SELECT name,snap_id,source,destination,date FROM (SELECT row_number() over(ORDER BY date DESC) n,* from snapshots WHERE name like '{}%') WHERE n > {}", args.snapshot_prefix, args.keep_only))?;
let mut statement = connection.prepare(&format!("SELECT name,snap_id,source,destination,date FROM (SELECT row_number() over(ORDER BY date DESC) n,* from snapshots WHERE name like '{}%') WHERE n > {}", args.snapshot_prefix, args.keep_only))?;
while let State::Row = statement.next()? {
let mut db_struct = Database::default();