From 3622d98ec333092c4e51b8c2208346b1e4405388 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Mon, 17 Oct 2022 17:07:18 +0200 Subject: [PATCH] fix: fixes api break regarding paginator pattern Signed-off-by: Vincenzo Palazzo --- .../__pycache__/__init__.cpython-38.pyc | Bin 250 -> 250 bytes .../lnmetrics_client.cpython-38.pyc | Bin 3097 -> 3303 bytes .../__pycache__/queries.cpython-38.pyc | Bin 1544 -> 1974 bytes lnmetrics_api/queries/queries.py | 2 +- .../conftest.cpython-38-pytest-5.4.3.pyc | Bin 549 -> 549 bytes ..._lnmetrics_api.cpython-38-pytest-5.4.3.pyc | Bin 3631 -> 3442 bytes tests/test_lnmetrics_api.py | 4 ++-- 7 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lnmetrics_api/__pycache__/__init__.cpython-38.pyc b/lnmetrics_api/__pycache__/__init__.cpython-38.pyc index f778f11ac2ac3f59b8b4c046bf45c45e52416497..7cf059467b55c5cb6d13968e63c8d74bedfa0a1f 100644 GIT binary patch delta 18 Ycmeyx_=}M%l$V!_0SFX=CUSiM04#9?cK`qY delta 18 Ycmeyx_=}M%l$V!_0SHVyCUSiM04%KpfdBvi diff --git a/lnmetrics_api/__pycache__/lnmetrics_client.cpython-38.pyc b/lnmetrics_api/__pycache__/lnmetrics_client.cpython-38.pyc index b25a63f4c547c71f803171f330f3f1bc1b4c5496..9400fac1f914ebcb787e97d4d330d7063ec48b61 100644 GIT binary patch delta 1352 zcmaJ>OOG2x5T1U_)Ao3iU3NE004WyFUNz5(?`jqHdL7_Ok(` zQ+%zbZEVetE6)4%y5X0*%#8X@Ayo7&zNJyOlm&kT09mr zCzaYkO4*~4Ai>8-7+TXGS5Nr)q3Xgz7)&js&uA0Z5MkXlus4O$mMM;L1f~v3uphua z`ZQ|ClgnVe)xM@0+39%r}8{`VcPaU&f{lfLe8U|&I#t{*V7+*YpR=33^ z7FQ3&{LNL&)&4Uy|+Hv%XjGVl)DpScaHCfp*v|#p;0~^ o*9^+Vv1$HDnq5QqUrOrWdNI+{9Bwd#m2{1y7w{F<#%E3Z1HwEcEdT%j delta 1127 zcmaJmy=F zWKSd9Y_N}>#vh1?&4x{4SE-xp(fPEi&iuX5WC|cP_J|-ysdhcXF9(Sm

E(qwiRwPZUD%#0;6+E#e#sswOqsEXz=%rH0!78s;J z^jCA9`1-=!Uo1l;bL49oc2fzQL+D#Cx>CJSBVen_0FWYMVKa(q`iw0B!FSdT#&LgQ zkd&umCNDP{-S#Wh+-*puI%-lMT92XTi*pB2* zzic$br?>8(|LNa`eIFDi1b_u#y=7moQdgRYu9EU3Dw?^ZlfR8u?4;h4OIL vdQeacdZW0o?%?m$l1cxX^NYZQob+GaGIu%dh;AfT2&5&L%j^m%l2P*)LJ{7p diff --git a/lnmetrics_api/queries/__pycache__/queries.cpython-38.pyc b/lnmetrics_api/queries/__pycache__/queries.cpython-38.pyc index 1bc2348f274cc4621b5202b3a492849d80d84558..f08db4bfd86f9e7db01dbbbeb19c83ea4f55aa6c 100644 GIT binary patch delta 336 zcmYk1u}TCn5QgP;u~@vbIYh)_YAbyM!TQRp!;sA4NSrK5Ry{;)?e{$d5qund0r3ee zOzt*|e=$rxX8wQja`17uSkLFpUec9a>EHdg#Yr{$tcJ7d6_n6JY#`}rTlF=HkPV8Z zb@12>m-X^_go@2}20)x4g_bdlKs)Pv>9Ir2aWg(!=kL**kj!#SmSImivXhB~h_Nqb z04=iZJt|S)HmaH!sK1Z delta 47 zcmdnS-@(Hd%FD~e00g=|p-FzM8~LP|nGBdFYca3m&WO)Tttg2vNK8-NJdstE2>|r) B3*P_$ diff --git a/lnmetrics_api/queries/queries.py b/lnmetrics_api/queries/queries.py index e5d8de8..517ea9e 100644 --- a/lnmetrics_api/queries/queries.py +++ b/lnmetrics_api/queries/queries.py @@ -62,7 +62,7 @@ page_info { start end - hash_next_page + has_next } channels_info { node_id diff --git a/tests/__pycache__/conftest.cpython-38-pytest-5.4.3.pyc b/tests/__pycache__/conftest.cpython-38-pytest-5.4.3.pyc index f06258a6533d2b806122c177398dbb91c33e0ce2..158dad6e1de7682de19e2db241b46eac7fb2653a 100644 GIT binary patch delta 15 WcmZ3=vXq4_l$V!FA!s9;JQDyMsskJV delta 15 WcmZ3=vXq4_l$V#w#A73yJQDyM@B=0Q diff --git a/tests/__pycache__/test_lnmetrics_api.cpython-38-pytest-5.4.3.pyc b/tests/__pycache__/test_lnmetrics_api.cpython-38-pytest-5.4.3.pyc index 95fcc4dbb8d16231268a8e9218559e85f3af52ec..5ddeacca9b130a99d818387d3640c032fb31de34 100644 GIT binary patch delta 107 zcmV-x0F?i)9P%0oRSgXauWe0ZgRu!s2mwU1R|rG`1rbvKDH)R<3zrJo2xwt*Uv6c1 zbd$vkAd?sjpBHjK000155Myt3ZggpGXJ2wLnE+Cr+#Li<%k(qpf(}*oa zFqlD8cJczQ=>k!F8HvRi@p-8gCGiD`>8X<)xfP6y3>g?0G#P&}+1hF{Rtc$U6jT~$ z7Ax4=Du9^An#H#SlJiURN;31( None: assert "page_info" in response page_info = response["page_info"] - has_next = page_info["hash_next_page"] + has_next = page_info["has_next"] counting_request = 1 while has_next: first = page_info["start"] @@ -68,6 +68,6 @@ def test_get_metric_one_paginator(client: LNMetricsClient) -> None: counting_request += 1 assert "page_info" in response page_info = response["page_info"] - has_next = page_info["hash_next_page"] + has_next = page_info["has_next"] # TODO: check why this fails # assert counting_request == 4