Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
working on new db system
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed May 5, 2020
1 parent 5b0f9b7 commit 7908b75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/andromeda/araserver/persona/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ class Main {
val no = json.getInt("no")
if (json.getString("name") == params.word){
if(LocaleData.containsNoWord(params.input)){ UpdateDB().update(
CosmosClients.client,
it.id,
"no",,
"no",
"personapend",
no + 1
)
println("no")
}
else UpdateDB().update(CosmosClients.client, it.id, "yes",, yes + 1)
UpdateDB().update(CosmosClients.client, it.id, "total",, total + 1)
else UpdateDB().update( it.id, "yes","personapend", yes + 1)
UpdateDB().update(it.id, "total","personapend", total + 1)
if (total + 1 == 11) addToMainDataBase(params.word, yes >= no)
return Gson().toJson(outputModel)
}
Expand Down

0 comments on commit 7908b75

Please sign in to comment.