mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-08 16:14:15 -04:00
* Fixed a bug where chapter cover images weren't being updated due to a missed not. * Removed a piece of code that was needed for upgrading, since all beta users agreed to wipe db. * Fixed InProgress to properly respect order and show more recent activity first. Issue is with IEntityDate LastModified not updating in DataContext. * Updated dependencies to lastest stable. * LastModified on Volumes wasn't updating, validated it does update when data is changed.
18 lines
468 B
C#
18 lines
468 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace API.Extensions
|
|
{
|
|
public static class FileInfoExtensions
|
|
{
|
|
public static bool DoesLastWriteMatch(this FileInfo fileInfo, DateTime comparison)
|
|
{
|
|
return comparison.Equals(fileInfo.LastWriteTime);
|
|
}
|
|
|
|
public static bool IsLastWriteLessThan(this FileInfo fileInfo, DateTime comparison)
|
|
{
|
|
return fileInfo.LastWriteTime < comparison;
|
|
}
|
|
}
|
|
} |