mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
fix test
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
728e39977a
commit
ba853b81c7
7 changed files with 7 additions and 16 deletions
|
|
@ -19,6 +19,8 @@ if __name__ == "__main__":
|
|||
if Path("cookie.json").exists():
|
||||
with open("cookie.json", "r") as f:
|
||||
cookies = json.load(f)
|
||||
if isinstance(cookies, list):
|
||||
cookies = {k["name"]: k["value"] for k in cookies}
|
||||
cookies_str = "; ".join([f"{k}={v}" for k, v in cookies.items()])
|
||||
|
||||
with open("src/config/placeholder.json", "r") as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue