Skip to content

Commit

Permalink
ATS.updateAll(rule)
Browse files Browse the repository at this point in the history
  • Loading branch information
JG1VPP committed Jul 15, 2024
1 parent 7a6465d commit 7dd3dd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/tasks/tasks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ class UpdateTask(implicit req: RequestHeader, in: Injections, admin: Boolean) {
* @return 管理画面のページ
*/
def accept: Html = {
for (message <- in.ats.messages().list().asScala) util.Try(in.ats.messages().drop(message))
for (archive <- in.ats.archives().list().asScala) util.Try(in.ats.messages().push(archive))
for (station <- in.ats.stations().list().asScala) in.ats.update(station.call, in.rule)
in.ats.updateAll(in.rule)
pages.lists()
}
}
Expand Down Expand Up @@ -319,7 +317,7 @@ class SocketTask(out: ActorRef, token: UUID)(implicit in: Injections) extends Ac
val qsoDiff = decoder.unpack(data.tail).asScala
in.ats.messages().drop(station.call, qsoDiff.take(data.head.toInt & 0xFF).asJava)
in.ats.messages().push(station.call, qsoDiff.drop(data.head.toInt & 0xFF).asJava)
in.ats.update(station.call, in.rule);
in.ats.update(station.call, in.rule)
Logger(this.getClass).info(s"update: $station.call")
if (in.rule.finish()) new RankingTableToJson().json else ""
}
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libraryDependencies ++= Seq(
filters,
guice,
jdbc,
"qxsl" % "qxsl" % "0.1.294",
"qxsl" % "qxsl" % "0.1.295",
"org.jruby" % "jruby-core" % "9.+",
"com.h2database" % "h2" % "1.4.+",
"com.typesafe.play" %% "play-mailer" % "7.0.+",
Expand Down

0 comments on commit 7dd3dd6

Please sign in to comment.