Skip to content

Commit

Permalink
store proper json in DB for quest condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Grennith committed Apr 5, 2024
1 parent a9d8ad5 commit 0ff677a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapadroid/db/DbPogoProtoSubmitRaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ async def quest(self, session: AsyncSession, quest_proto: pogoprotos.FortSearchO
condition: RepeatedCompositeFieldContainer[pogoprotos.QuestConditionProto] = goal.condition

# TODO: Json dumping protos...
json_condition: str = json.dumps(condition)
json_condition: str = ProtoHelper.to_json(condition)
task = await quest_gen.questtask(int(quest_type), json_condition, int(target), quest_template,
quest_title_resource_id)
quest: Optional[TrsQuest] = await TrsQuestHelper.get(session, fort_id, quest_layer)
Expand Down

0 comments on commit 0ff677a

Please sign in to comment.