Skip to content

Commit

Permalink
spelling mistake
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Sep 25, 2021
1 parent 766fc7a commit a70a331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2021/2021-09-25-open-source-halloween.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ The searching and parsing over results was fairly simple and easy, and there was

### Image digests

I was worried about someone forking a repository with a candy image, and then the image being added twice. The best way to prevent this, I thought, would be to calculate the digests of the images, and skip over those that we've already seen. Yes, this could mean that if for some reason a fork of your repository with the same image is indexed before your repository, you'd see their image and not yours, but ultimatly if it's a fork it will lead to your repostiory, so I'm not hugely worried. In Python it's pretty simple to calculate a digest for an image (or any file really):
I was worried about someone forking a repository with a candy image, and then the image being added twice. The best way to prevent this, I thought, would be to calculate the digests of the images, and skip over those that we've already seen. Yes, this could mean that if for some reason a fork of your repository with the same image is indexed before your repository, you'd see their image and not yours, but ultimatly if it's a fork it will lead to your repository, so I'm not hugely worried. In Python it's pretty simple to calculate a digest for an image (or any file really):

```python
def get_digest(filename):
Expand Down

0 comments on commit a70a331

Please sign in to comment.