✏️ Fix: [#72] 페이지네이션에 total_page 추가
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import requests
|
||||
import requests, math
|
||||
|
||||
from .models import *
|
||||
from projects.models import *
|
||||
@@ -133,4 +133,7 @@ class GithubTokenService:
|
||||
"scope": data.get("scope", ""),
|
||||
"token_type": data.get("token_type", "bearer"),
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
def cal_github_total_page(list_count, page_size):
|
||||
return math.ceil(list_count / page_size)
|
||||
Reference in New Issue
Block a user