Merge branch 'master' into clarkeyUI
* master: don't pretend that imported games are being played don't remove unfinished imported games
This commit is contained in:
commit
9a9ede06d4
|
@ -332,7 +332,7 @@ case class Game(
|
|||
0
|
||||
)
|
||||
|
||||
def isBeingPlayed = !finishedOrAborted && !olderThan(60)
|
||||
def isBeingPlayed = !isPgnImport && !finishedOrAborted && !olderThan(60)
|
||||
|
||||
def olderThan(seconds: Int) = updatedAt.??(_ isBefore DateTime.now.minusSeconds(seconds))
|
||||
|
||||
|
|
|
@ -58,8 +58,7 @@ private[importer] case class ImportData(pgn: String) {
|
|||
mode = Mode.Casual,
|
||||
variant = variant,
|
||||
source = Source.Import,
|
||||
pgnImport = PgnImport(user = user, date = date, pgn = pgn).some
|
||||
)
|
||||
pgnImport = PgnImport(user = user, date = date, pgn = pgn).some).start
|
||||
|
||||
Preprocessed(dbGame, replay.chronoMoves, result)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue