Skip to content

Commit

Permalink
Updated versions and stable ready for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuomkar committed Oct 22, 2023
1 parent fadf2f3 commit a46e3ed
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/internal/service/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Service struct {
Storage storage.Provider
}

func (s *Service) GetWorkerConfig(_ context.Context, _ *empty.Empty) (*api.ConfigResponse, error) {
func (s *Service) GetWorkerConfig(_ context.Context, _ *emptypb.Empty) (*api.ConfigResponse, error) {
type WorkerTask struct {
Name string `json:"name"`
Source string `json:"source,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion api/internal/service/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ func TestSaveMediaItemPeople(t *testing.T) {
},
{
"save mediaitem people with invalid face id",
&api.MediaItemPeopleRequest{UserId: "4d05b5f6-17c2-475e-87fe-3fc8b9567179", MediaItemFacePeople: map[string]*api.MediaItemFacePeople{"4d05b5f6-17c2-475e-87fe-3fc8b9567179": &api.MediaItemFacePeople{
&api.MediaItemPeopleRequest{UserId: "4d05b5f6-17c2-475e-87fe-3fc8b9567179", MediaItemFacePeople: map[string]*api.MediaItemFacePeople{"4d05b5f6-17c2-475e-87fe-3fc8b9567179": {
FacePeople: map[string]string{"bad-face-id": "bad-people-id"},
}}},
nil,
Expand Down
2 changes: 1 addition & 1 deletion worker/.pylintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[MASTER]
ignore=tests
ignore-patterns=.*_pb2.py,.*_grpc.py,.*.txt,.*file,.*.toml,.*.xml,.*.md
disable=too-few-public-methods,logging-fstring-interpolation,broad-except,import-outside-toplevel
disable=too-few-public-methods,logging-fstring-interpolation,broad-except,import-outside-toplevel,too-many-boolean-expressions
generated-members=fastdeploy.*,cv2.*
[FORMAT]
max-line-length=120
1 change: 0 additions & 1 deletion worker/src/components/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ async def process(self, mediaitem_user_id: str, mediaitem_id: str, mediaitem_fil
result['latitude'] = getval_from_dict(metadata, ['Composite:GPSLatitude'], return_type='float')
result['longitude'] = getval_from_dict(metadata, ['Composite:GPSLongitude'], return_type='float')
if result['latitude'] is None or result['longitude'] is None:
# pylint: disable=too-many-boolean-expressions
if 'EXIF:GPSLatitudeRef' in metadata and 'EXIF:GPSLatitude' in metadata and \
'EXIF:GPSLongitudeRef' in metadata and 'EXIF:GPSLongitude' in metadata and \
metadata['EXIF:GPSLatitudeRef'] != '' and metadata['EXIF:GPSLatitude'] != '' and \
Expand Down

0 comments on commit a46e3ed

Please sign in to comment.