✏️ Fix: [#72] 페이지네이션에 total_page 추가

This commit is contained in:
sm4640
2025-08-03 20:15:12 +09:00
parent 2fbf81c201
commit 32df1270c4
2 changed files with 50 additions and 20 deletions

View File

@@ -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)